Skip to content

Commit a4b0458

Browse files
mohnjilesclaude
andcommitted
fix: one docs button per page, and unwedge the inference one
The package manager shell and its hosted pages both carried a ? button, so the console page showed two stacked in the same corner. The shell no longer claims one; the package list page owns its own, matching the console and install-detail pages. The inference button also sat inside the connection cluster with 2px spacing; it now follows that cluster, ahead of the overflow menu. Bumps the control's padding to a 28px hit target. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 73234cd commit a4b0458

4 files changed

Lines changed: 25 additions & 21 deletions

File tree

StabilityMatrix.Avalonia/Styles/ControlThemes/DocsHelpButtonStyles.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<Setter Property="Background" Value="Transparent" />
2121
<Setter Property="BorderThickness" Value="0" />
22-
<Setter Property="Padding" Value="4" />
22+
<Setter Property="Padding" Value="6" />
2323
<Setter Property="CornerRadius" Value="4" />
2424
<Setter Property="Cursor" Value="Hand" />
2525
<Setter Property="VerticalAlignment" Value="Center" />

StabilityMatrix.Avalonia/Views/InferencePage.axaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@
191191
</StackPanel>
192192
</Button>
193193

194-
<controls:DocsHelpButton DocsPath="{x:Static docs:DocumentationPages.InferenceOverview}" />
195-
196194
<!-- Successful connection icon -->
197195
<Button Classes="transparent-full">
198196

@@ -227,6 +225,9 @@
227225
</Button.Flyout>
228226
</Button>
229227

228+
<!-- Sits after the connection cluster so it doesn't read as part of it -->
229+
<controls:DocsHelpButton Margin="6,0,2,0" DocsPath="{x:Static docs:DocumentationPages.InferenceOverview}" />
230+
230231
<!-- Menu -->
231232
<Button Classes="transparent-full">
232233
<ui:SymbolIcon FontSize="18" Symbol="MoreVertical" />

StabilityMatrix.Avalonia/Views/PackageManager/MainPackageManagerView.axaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
xmlns:converters="clr-namespace:StabilityMatrix.Avalonia.Converters"
77
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
88
xmlns:designData="clr-namespace:StabilityMatrix.Avalonia.DesignData"
9+
xmlns:docs="clr-namespace:StabilityMatrix.Core.Models.Documentation;assembly=StabilityMatrix.Core"
910
xmlns:generic1="clr-namespace:System.Collections.Generic;assembly=System.Runtime"
1011
xmlns:icons="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia"
1112
xmlns:input="clr-namespace:FluentAvalonia.UI.Input;assembly=FluentAvalonia"
@@ -27,6 +28,11 @@
2728
</controls:UserControlBase.Resources>
2829

2930
<Grid Margin="16" RowDefinitions="Auto,*,Auto">
31+
<controls:DocsHelpButton
32+
Grid.Row="0"
33+
HorizontalAlignment="Right"
34+
DocsPath="{x:Static docs:DocumentationPages.SupportedPackages}" />
35+
3036
<ScrollViewer Grid.Row="1">
3137
<ui:ItemsRepeater x:Name="PackageCardsRepeater" ItemsSource="{Binding PackageCards}">
3238
<ui:ItemsRepeater.Layout>

StabilityMatrix.Avalonia/Views/PackageManagerPage.axaml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,22 @@
2929
<!-- ReSharper restore Xaml.RedundantResource -->
3030
</controls:UserControlBase.Resources>
3131

32+
<!--
33+
No docs button on this shell: each page hosted in the frame below owns its own
34+
contextual help, so a shell-level one would stack a second ? in the same corner.
35+
-->
3236
<Grid RowDefinitions="Auto,*">
33-
<Grid Grid.Row="0" ColumnDefinitions="*,Auto">
34-
<ui:BreadcrumbBar
35-
x:Name="BreadcrumbBar"
36-
Grid.Column="0"
37-
Margin="16,8"
38-
ItemsSource="{Binding CurrentPagePath}">
39-
<ui:BreadcrumbBar.ItemTemplate>
40-
<DataTemplate x:DataType="base:PageViewModelBase">
41-
<ui:BreadcrumbBarItem Content="{Binding Title}" />
42-
</DataTemplate>
43-
</ui:BreadcrumbBar.ItemTemplate>
44-
</ui:BreadcrumbBar>
45-
46-
<controls:DocsHelpButton
47-
Grid.Column="1"
48-
Margin="0,8,16,8"
49-
DocsPath="{x:Static docs:DocumentationPages.SupportedPackages}" />
50-
</Grid>
37+
<ui:BreadcrumbBar
38+
x:Name="BreadcrumbBar"
39+
Grid.Row="0"
40+
Margin="16,8"
41+
ItemsSource="{Binding CurrentPagePath}">
42+
<ui:BreadcrumbBar.ItemTemplate>
43+
<DataTemplate x:DataType="base:PageViewModelBase">
44+
<ui:BreadcrumbBarItem Content="{Binding Title}" />
45+
</DataTemplate>
46+
</ui:BreadcrumbBar.ItemTemplate>
47+
</ui:BreadcrumbBar>
5148

5249
<controls1:Frame Name="FrameView" Grid.Row="1">
5350
<controls1:Frame.NavigationPageFactory>

0 commit comments

Comments
 (0)