|
27 | 27 | <ContentPage.ToolbarItems> |
28 | 28 | <ToolbarItem Text="Connect" Command="{Binding ConnectCommand}" /> |
29 | 29 | <ToolbarItem Text="Disconnect" Command="{Binding DisconnectCommand}" /> |
30 | | - <ToolbarItem Text="New Session" Command="{Binding NewSessionCommand}" /> |
31 | | - <ToolbarItem Text="Terminate" Command="{Binding TerminateCurrentSessionCommand}" /> |
32 | | - <ToolbarItem Text="Template" Command="{Binding UsePromptTemplateCommand}" /> |
33 | 30 | </ContentPage.ToolbarItems> |
34 | 31 |
|
35 | 32 | <ContentPage.Resources> |
|
85 | 82 | <Border.StrokeShape> |
86 | 83 | <RoundRectangle CornerRadius="12"/> |
87 | 84 | </Border.StrokeShape> |
88 | | - <VerticalStackLayout Spacing="6"> |
89 | | - <HorizontalStackLayout Spacing="8" VerticalOptions="Center"> |
90 | | - <Label Text="Sessions" FontAttributes="Bold" VerticalOptions="Center" /> |
91 | | - <Button x:Name="NewSessionBtn" Text="+ New" Command="{Binding NewSessionCommand}" Padding="12,4" /> |
92 | | - <Button Text="Terminate" Command="{Binding TerminateCurrentSessionCommand}" Padding="12,4" /> |
| 85 | + <VerticalStackLayout Spacing="4"> |
| 86 | + <HorizontalStackLayout Spacing="6" VerticalOptions="Center"> |
| 87 | + <Label Text="Sessions" FontAttributes="Bold" FontSize="13" VerticalOptions="Center" /> |
| 88 | + <Button x:Name="NewSessionBtn" Text="+ New" Command="{Binding NewSessionCommand}" Padding="8,2" FontSize="12" /> |
| 89 | + <Button Text="End" Command="{Binding TerminateCurrentSessionCommand}" Padding="8,2" FontSize="12" /> |
93 | 90 | </HorizontalStackLayout> |
94 | 91 | <CollectionView x:Name="SessionTabsView" |
95 | | - HeightRequest="44" |
| 92 | + HeightRequest="34" |
96 | 93 | ItemsSource="{Binding Sessions}" |
97 | 94 | SelectedItem="{Binding CurrentSession, Mode=TwoWay}" |
98 | 95 | SelectionMode="Single"> |
|
101 | 98 | </CollectionView.ItemsLayout> |
102 | 99 | <CollectionView.ItemTemplate> |
103 | 100 | <DataTemplate> |
104 | | - <HorizontalStackLayout Spacing="6"> |
105 | | - <Border Padding="10,6" StrokeThickness="1" Stroke="{StaticResource OutlineBrush}" BackgroundColor="{StaticResource SurfaceBrush}"> |
106 | | - <Border.StrokeShape><RoundRectangle CornerRadius="8"/></Border.StrokeShape> |
107 | | - <Label Text="{Binding Title}" MaxLines="1" LineBreakMode="TailTruncation" /> |
| 101 | + <HorizontalStackLayout Spacing="2"> |
| 102 | + <Border Padding="8,4" StrokeThickness="1" Stroke="{StaticResource OutlineBrush}" BackgroundColor="{StaticResource SurfaceBrush}"> |
| 103 | + <Border.StrokeShape><RoundRectangle CornerRadius="6"/></Border.StrokeShape> |
| 104 | + <Label Text="{Binding Title}" FontSize="12" MaxLines="1" LineBreakMode="TailTruncation" /> |
108 | 105 | </Border> |
109 | | - <Button Text="X" |
110 | | - WidthRequest="34" |
111 | | - HeightRequest="34" |
| 106 | + <Button Text="✕" FontSize="10" |
| 107 | + WidthRequest="24" |
| 108 | + HeightRequest="24" |
112 | 109 | Padding="0" |
| 110 | + CornerRadius="12" |
113 | 111 | Command="{Binding BindingContext.TerminateSessionCommand, Source={x:Reference ThisPage}}" |
114 | 112 | CommandParameter="{Binding .}" /> |
115 | 113 | </HorizontalStackLayout> |
|
259 | 257 | </CollectionView.ItemTemplate> |
260 | 258 | </CollectionView> |
261 | 259 |
|
262 | | - <!-- Input: M3 outlined field row, 48dp touch --> |
263 | | - <Border Grid.Row="3" Stroke="{StaticResource OutlineBrush}" StrokeThickness="1" Padding="12,8" Margin="0,8,0,0"> |
264 | | - <Border.StrokeShape> |
265 | | - <RoundRectangle CornerRadius="8"/> |
266 | | - </Border.StrokeShape> |
267 | | - <HorizontalStackLayout Spacing="8" VerticalOptions="Center"> |
268 | | - <Label Style="{StaticResource IconLabel}" Text="{StaticResource IconMessage}" |
269 | | - TextColor="{StaticResource OnSurfaceVariantBrush}" VerticalOptions="Center" /> |
270 | | - <Editor x:Name="MessageEditor" |
| 260 | + <!-- Input: M3 outlined field row --> |
| 261 | + <Border Grid.Row="3" Stroke="{StaticResource OutlineBrush}" StrokeThickness="1" Padding="8,4" Margin="0,8,0,0"> |
| 262 | + <Border.StrokeShape> |
| 263 | + <RoundRectangle CornerRadius="8"/> |
| 264 | + </Border.StrokeShape> |
| 265 | + <Grid ColumnDefinitions="*,Auto" ColumnSpacing="6"> |
| 266 | + <Editor Grid.Column="0" x:Name="MessageEditor" |
271 | 267 | Placeholder="Message to agent..." |
272 | 268 | Text="{Binding PendingMessage, Mode=TwoWay}" |
273 | 269 | AutoSize="TextChanges" |
274 | | - MinimumHeightRequest="72" |
| 270 | + MinimumHeightRequest="40" |
275 | 271 | PlaceholderColor="{StaticResource OnSurfaceVariantBrush}" |
276 | | - VerticalOptions="Center" /> |
277 | | - <HorizontalStackLayout Spacing="4" VerticalOptions="Center"> |
| 272 | + VerticalOptions="Center" |
| 273 | + HorizontalOptions="Fill" /> |
| 274 | + <HorizontalStackLayout Grid.Column="1" Spacing="4" VerticalOptions="Center"> |
278 | 275 | <Button x:Name="AttachBtn" Command="{Binding AttachCommand}" Padding="8" MinimumHeightRequest="36" MinimumWidthRequest="36"> |
279 | 276 | <Button.ImageSource> |
280 | 277 | <FontImageSource FontFamily="fa-solid-900" Glyph="{StaticResource IconPaperclip}" Color="{StaticResource OnPrimaryBrush}" Size="16"/> |
|
286 | 283 | </Button.ImageSource> |
287 | 284 | </Button> |
288 | 285 | </HorizontalStackLayout> |
289 | | - </HorizontalStackLayout> |
| 286 | + </Grid> |
290 | 287 | </Border> |
291 | 288 |
|
292 | 289 | <!-- Status: M3 label small, OnSurfaceVariant --> |
|
0 commit comments