File tree Expand file tree Collapse file tree
src/OpenClaw.Tray.WinUI/Pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 </Page .Resources>
1111
1212 <Grid >
13- <Grid .RowDefinitions>
14- <RowDefinition Height =" *" />
15- <RowDefinition Height =" Auto" />
16- </Grid .RowDefinitions>
17-
18- <ScrollViewer Grid.Row=" 0" VerticalScrollBarVisibility =" Auto" Padding =" 24,24,24,24" >
19- <StackPanel Spacing =" 8" HorizontalAlignment =" Stretch" MaxWidth =" 900" >
13+ <ScrollViewer VerticalScrollBarVisibility =" Auto" >
14+ <!--
15+ Grid wrapper is required: ScrollViewer measures its direct
16+ child with infinite available width, which makes
17+ Stretch+MaxWidth collapse to the child's natural width and
18+ left-shift the column. A Grid in between gives the
19+ StackPanel a finite viewport-width slot so Stretch fills
20+ up to MaxWidth and centers with growing side margins.
21+ (Pattern matches ConnectionPage / SkillsPage.)
22+ -->
23+ <Grid HorizontalAlignment =" Stretch" >
24+ <StackPanel Padding =" 24" Spacing =" 8" HorizontalAlignment =" Stretch" MaxWidth =" 900" >
2025
2126 <!-- Page header -->
2227 <TextBlock x : Uid =" SettingsPage_Settings" Text =" Settings"
285290 </Border >
286291
287292 </StackPanel >
293+ </Grid >
288294 </ScrollViewer >
289295
290296 <!-- Saved indicator (transient, auto-hides) -->
291- <InfoBar x : Uid =" SettingsPage_Saved" x : Name =" SavedInfoBar" Grid.Row= " 1 "
297+ <InfoBar x : Uid =" SettingsPage_Saved" x : Name =" SavedInfoBar"
292298 IsOpen =" False" IsClosable =" False"
293299 Severity =" Success"
294300 Title =" Saved"
295301 HorizontalAlignment =" Right"
302+ VerticalAlignment =" Bottom"
296303 Margin =" 0,0,24,12"
297304 MaxWidth =" 200" />
298305 </Grid >
You can’t perform that action at this time.
0 commit comments