fix(ui): stop the console clipping the last log line

The tab body ran flush into the console's rounded bottom corner, so the final
log line was shaved off. Inset the tab body from the bottom so the scroll
viewport ends above the corner and ScrollToEnd reveals the whole last line.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-06-04 22:51:49 +02:00
parent 71a3765c07
commit 1603be0c78

View File

@@ -135,15 +135,15 @@
</StackPanel> </StackPanel>
</Border> </Border>
<!-- ── Tab body ── --> <!-- ── Tab body (bottom inset keeps content clear of the rounded corner) ── -->
<Grid> <Grid Margin="0,0,0,8">
<!-- Output: log rendered directly on the console body (no nested card) --> <!-- Output: log rendered directly on the console body (no nested card) -->
<ScrollViewer Name="LogScroll" <ScrollViewer Name="LogScroll"
IsVisible="{Binding IsOutputTab}" IsVisible="{Binding IsOutputTab}"
VerticalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible"
AllowAutoHide="False" AllowAutoHide="False"
Padding="12,8,12,12"> Padding="12,8,12,4">
<ItemsControl ItemsSource="{Binding Log}"> <ItemsControl ItemsSource="{Binding Log}">
<ItemsControl.ItemTemplate> <ItemsControl.ItemTemplate>
<DataTemplate DataType="vm:LogLineViewModel"> <DataTemplate DataType="vm:LogLineViewModel">