Skip to content

Commit 5e237a5

Browse files
mohnjilesclaude
andcommitted
Fix zoom overlay buttons stretching to full pane height
FluentIcons SymbolIcon measures greedily when given only FontSize, so the zoom in/out buttons expanded to the full height of the content pane. Constrain the icons with explicit Width/Height (the pattern used elsewhere in the app). Verified with a headless render of the page. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 7306974 commit 5e237a5

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

StabilityMatrix.Avalonia/Views/DocumentationPage.axaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,12 @@
161161
Classes="transparent"
162162
Command="{Binding ZoomOutCommand}"
163163
ToolTip.Tip="Zoom out">
164-
<fluentAvalonia:SymbolIcon FontSize="16" Symbol="ZoomOut" />
164+
<!-- FluentIcons SymbolIcon measures greedily without explicit Width/Height -->
165+
<fluentAvalonia:SymbolIcon
166+
Width="16"
167+
Height="16"
168+
FontSize="16"
169+
Symbol="ZoomOut" />
165170
</Button>
166171
<Button
167172
MinWidth="48"
@@ -179,7 +184,11 @@
179184
Classes="transparent"
180185
Command="{Binding ZoomInCommand}"
181186
ToolTip.Tip="Zoom in">
182-
<fluentAvalonia:SymbolIcon FontSize="16" Symbol="ZoomIn" />
187+
<fluentAvalonia:SymbolIcon
188+
Width="16"
189+
Height="16"
190+
FontSize="16"
191+
Symbol="ZoomIn" />
183192
</Button>
184193
</StackPanel>
185194
</Border>

0 commit comments

Comments
 (0)