fix(claude-do): Maximize button hides the window instead of maximizing

## Bug
Clicking the maximize control in the custom title bar makes the main window disappear/hide instead of filling the screen. Restore is then hard or impossible.

## Where
`MainWindow` uses custom client-area chrome, so the OS does not manage maximize:
- `src/ClaudeDo.Ui/Views/MainWindow.axaml:14-16` — `WindowDecorations="BorderOnly"`, `ExtendClientAreaToDecorationsHint="True"`, `ExtendClientAr

ClaudeDo-Task: 7d3d9501a8eb4111b9d433fd917f5a22
This commit is contained in:
mika kuns
2026-06-15 15:08:02 +02:00
parent cfe23cdd23
commit 0d1475cb7a
2 changed files with 3 additions and 1 deletions

View File

@@ -22,7 +22,7 @@
<KeyBinding Gesture="Shift+OemQuestion" Command="{Binding FocusSearchCommand}"/> <KeyBinding Gesture="Shift+OemQuestion" Command="{Binding FocusSearchCommand}"/>
<KeyBinding Gesture="Ctrl+N" Command="{Binding FocusAddTaskCommand}"/> <KeyBinding Gesture="Ctrl+N" Command="{Binding FocusAddTaskCommand}"/>
</Window.KeyBindings> </Window.KeyBindings>
<Grid RowDefinitions="36,Auto,*,22"> <Grid x:Name="RootGrid" RowDefinitions="36,Auto,*,22">
<!-- Custom title bar --> <!-- Custom title bar -->
<Border Grid.Row="0" <Border Grid.Row="0"
Background="{DynamicResource DeepBrush}" Background="{DynamicResource DeepBrush}"

View File

@@ -27,6 +27,8 @@ public partial class MainWindow : Window
base.OnPropertyChanged(change); base.OnPropertyChanged(change);
if (change.Property == WindowStateProperty) if (change.Property == WindowStateProperty)
UpdateMaxIcon(); UpdateMaxIcon();
if (change.Property == OffScreenMarginProperty)
RootGrid.Margin = OffScreenMargin;
} }
private void UpdateMaxIcon() private void UpdateMaxIcon()