Skip to content

Commit 0b6706a

Browse files
committed
ui: stretch tab content so cards anchor to the top
TabItem defaults HorizontalContentAlignment + VerticalContentAlignment to Center, which made the General tab's single Card float in the vertical middle of the tab area with a wall of empty space above it. Setting both to Stretch on the TabControl propagates to every TabItem so each tab's ScrollViewer fills the available area and content sits naturally at the top.
1 parent 36a8c3c commit 0b6706a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/GamerGuardian/UI/SettingsWindow.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
</StackPanel>
4545
</Grid>
4646

47-
<TabControl x:Name="MainTabs" Padding="0,8,0,0">
47+
<TabControl x:Name="MainTabs" Padding="0,8,0,0"
48+
HorizontalContentAlignment="Stretch"
49+
VerticalContentAlignment="Stretch">
4850

4951
<TabItem Header="General">
5052
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="4,8,8,0">

0 commit comments

Comments
 (0)