diff --git a/LM-Kit-Maestro/AppConstants.cs b/LM-Kit-Maestro/AppConstants.cs index db1decac..5e6135b6 100644 --- a/LM-Kit-Maestro/AppConstants.cs +++ b/LM-Kit-Maestro/AppConstants.cs @@ -28,12 +28,10 @@ internal static class AppConstants public const double AlertPopupWidth = 400; - public const double TabBarHeight = 64; + public const double TabBarHeight = 48; public const double PageTopBarHeight = 64; - public const double ChatPageTopBarHeight = TabBarHeight + 64 - 8; - public const double ModelSelectionButtonMaxWidth = 568; public const double MinimizedHeaderButtonWidth = ChatWindowLayoutMinimumWidth - (16 * 2); diff --git a/LM-Kit-Maestro/AppShell.xaml b/LM-Kit-Maestro/AppShell.xaml index 789b3e4b..ae68fb44 100644 --- a/LM-Kit-Maestro/AppShell.xaml +++ b/LM-Kit-Maestro/AppShell.xaml @@ -54,10 +54,9 @@ - - - + + - + diff --git a/LM-Kit-Maestro/UI/ChatConversationsView.xaml.cs b/LM-Kit-Maestro/UI/ChatConversationsView.xaml.cs index 5dbfd18e..d273d788 100644 --- a/LM-Kit-Maestro/UI/ChatConversationsView.xaml.cs +++ b/LM-Kit-Maestro/UI/ChatConversationsView.xaml.cs @@ -78,7 +78,7 @@ private async void OnConversationListItemShowMoreClicked(object? sender, EventAr ChatConversationActionPopupViewModel chatConversationActionPopupViewModel = new ChatConversationActionPopupViewModel() { ConversationX = collectionView.ScrollX + conversationItem.Width, - ConversationY = conversationItem.Y - collectionView.ScrollY + conversationItem.Height + AppConstants.ChatPageTopBarHeight, + ConversationY = conversationItem.Y - collectionView.ScrollY + conversationItem.Height + AppConstants.TabBarHeight + AppConstants.PageTopBarHeight, ConversationItemHeight = conversationItem.Height, ConversationListHeight = Height }; diff --git a/LM-Kit-Maestro/UI/Pages/ChatPage.xaml.cs b/LM-Kit-Maestro/UI/Pages/ChatPage.xaml.cs index d9184222..b7ed567f 100644 --- a/LM-Kit-Maestro/UI/Pages/ChatPage.xaml.cs +++ b/LM-Kit-Maestro/UI/Pages/ChatPage.xaml.cs @@ -5,7 +5,7 @@ namespace LMKit.Maestro.UI; public partial class ChatPage : PageBase { private const int SidebarAnimationLength = 100; - public static readonly Thickness ChatViewMargin = new Thickness(AppConstants.HeaderHorizontalMargin, AppConstants.ChatPageHeaderHeight, AppConstants.PageTopBarHeight, 0); + public static readonly Thickness ChatViewMargin = new Thickness(AppConstants.HeaderHorizontalMargin, AppConstants.PageTopBarHeight + AppConstants.TabBarHeight, AppConstants.HeaderHorizontalMargin, 0); private readonly ChatPageViewModel _chatViewModel; diff --git a/LM-Kit-Maestro/UI/Pages/ModelsPage.xaml b/LM-Kit-Maestro/UI/Pages/ModelsPage.xaml index ed0d6ddb..fb68581e 100644 --- a/LM-Kit-Maestro/UI/Pages/ModelsPage.xaml +++ b/LM-Kit-Maestro/UI/Pages/ModelsPage.xaml @@ -1,5 +1,5 @@ - + x:Name="modelsPage"> - + - - + + - - - - - - - - - - - - - - - - - - - - - + + - - - - - + + + + + + + + + + - - - - - - - \ No newline at end of file + + + \ No newline at end of file diff --git a/LM-Kit-Maestro/UI/Pages/ModelsPage.xaml.cs b/LM-Kit-Maestro/UI/Pages/ModelsPage.xaml.cs index 6f9de0bb..2d069f60 100644 --- a/LM-Kit-Maestro/UI/Pages/ModelsPage.xaml.cs +++ b/LM-Kit-Maestro/UI/Pages/ModelsPage.xaml.cs @@ -4,7 +4,7 @@ namespace LMKit.Maestro.UI; -public partial class ModelsPage : ContentPage +public partial class ModelsPage : PageBase { private readonly ModelsPageViewModel _modelsPageViewModel; diff --git a/LM-Kit-Maestro/UI/Pages/PageBase.xaml b/LM-Kit-Maestro/UI/Pages/PageBase.xaml index c9b477d4..2f089041 100644 --- a/LM-Kit-Maestro/UI/Pages/PageBase.xaml +++ b/LM-Kit-Maestro/UI/Pages/PageBase.xaml @@ -6,13 +6,16 @@ Title="PageBase" x:Name="pageBase" > - + + + + + + - \ No newline at end of file diff --git a/LM-Kit-Maestro/UI/Popups/ChatConversationActionPopup.xaml.cs b/LM-Kit-Maestro/UI/Popups/ChatConversationActionPopup.xaml.cs index 2d050ca8..39285de8 100644 --- a/LM-Kit-Maestro/UI/Popups/ChatConversationActionPopup.xaml.cs +++ b/LM-Kit-Maestro/UI/Popups/ChatConversationActionPopup.xaml.cs @@ -35,7 +35,7 @@ private async void OnDeleteClicked(object sender, EventArgs e) private void OnPopupContentSizeChanged(object sender, EventArgs e) { var popupBottom = popupContentGrid.Height + _chatConversationActionPopupViewModel.ConversationY; - var pageBottom = _chatConversationActionPopupViewModel.ConversationListHeight + AppConstants.ChatPageTopBarHeight; + var pageBottom = _chatConversationActionPopupViewModel.ConversationListHeight + AppConstants.PageTopBarHeight + AppConstants.TabBarHeight; if (popupBottom > pageBottom) { diff --git a/LM-Kit-Maestro/UI/TopBarScaffold.xaml b/LM-Kit-Maestro/UI/TopBarScaffold.xaml index 23c870e1..1c765879 100644 --- a/LM-Kit-Maestro/UI/TopBarScaffold.xaml +++ b/LM-Kit-Maestro/UI/TopBarScaffold.xaml @@ -10,7 +10,7 @@ xmlns:vm="clr-namespace:LMKit.Maestro.ViewModels" x:Class="LMKit.Maestro.UI.TopBarScaffold">