fix(ui): move agent-settings expander out of capped scroller so it expands properly

This commit is contained in:
Mika Kuns
2026-04-22 13:50:35 +02:00
parent 2901a769d8
commit 839f862b7d

View File

@@ -88,8 +88,8 @@
</Grid>
</Border>
<!-- ── Main body: agent strip (auto) · terminal (flex) · steps+notes (auto/capped) ── -->
<Grid RowDefinitions="Auto,*,Auto">
<!-- ── Main body: agent strip (auto) · terminal (flex) · steps+notes (auto/capped) · agent overrides (auto) ── -->
<Grid RowDefinitions="Auto,*,Auto,Auto">
<!-- Agent strip -->
<islands:AgentStripView Grid.Row="0"/>
@@ -150,8 +150,12 @@
LostFocus="NotesLostFocus"/>
</StackPanel>
<!-- Agent settings overrides -->
<Expander Header="Agent settings (overrides)"
</StackPanel>
</ScrollViewer>
<!-- Agent settings overrides — own row so expanding shrinks the terminal (down to its MinHeight) instead of scrolling inside the capped section -->
<Expander Grid.Row="3"
Header="Agent settings (overrides)"
IsExpanded="False"
IsEnabled="{Binding IsAgentSectionEnabled}"
Margin="18,0,18,12">
@@ -170,7 +174,7 @@
<TextBlock Text="System prompt (appended)" />
<TextBox Text="{Binding TaskSystemPrompt, Mode=TwoWay}"
AcceptsReturn="True" TextWrapping="Wrap" MinHeight="60"
Watermark="{Binding EffectiveSystemPromptHint}" />
PlaceholderText="{Binding EffectiveSystemPromptHint}" />
</StackPanel>
<StackPanel Spacing="2">
@@ -190,9 +194,6 @@
</StackPanel>
</Expander>
</StackPanel>
</ScrollViewer>
</Grid>
</DockPanel>
</UserControl>