fix(ui): stop review-feedback field clipping placeholder and typed text

Shorten the review-prompt placeholder and localize it (session.reviewFeedbackPlaceholder,
en+de) instead of a hardcoded string that overran the narrow column. Switch the growing
TextBox's VerticalContentAlignment from Center to Top so multi-line input grows downward
instead of being clipped top/bottom, add an auto scrollbar past MaxHeight, and top-align
the prompt glyph and Resume button to match.
This commit is contained in:
mika kuns
2026-08-11 08:50:45 +02:00
parent 11103d4d3e
commit d60ecb7f1b
3 changed files with 9 additions and 6 deletions
+2 -1
View File
@@ -266,7 +266,8 @@
"chipDone": "FERTIG", "chipDone": "FERTIG",
"chipFailed": "FEHLGESCHLAGEN", "chipFailed": "FEHLGESCHLAGEN",
"reviewContinueTip": "Dieses Feedback senden und die Aufgabe erneut ausführen", "reviewContinueTip": "Dieses Feedback senden und die Aufgabe erneut ausführen",
"reviewResetTip": "Alle Änderungen verwerfen und die Aufgabe auf Leerlauf zurücksetzen" "reviewResetTip": "Alle Änderungen verwerfen und die Aufgabe auf Leerlauf zurücksetzen",
"reviewFeedbackPlaceholder": "Feedback für nächsten Lauf"
}, },
"missionControl": { "missionControl": {
"windowTitle": "Mission Control", "windowTitle": "Mission Control",
+2 -1
View File
@@ -266,7 +266,8 @@
"chipDone": "DONE", "chipDone": "DONE",
"chipFailed": "FAILED", "chipFailed": "FAILED",
"reviewContinueTip": "Send this feedback and re-run the task", "reviewContinueTip": "Send this feedback and re-run the task",
"reviewResetTip": "Discard all changes and reset the task to Idle" "reviewResetTip": "Discard all changes and reset the task to Idle",
"reviewFeedbackPlaceholder": "Feedback for next run"
}, },
"missionControl": { "missionControl": {
"windowTitle": "Mission Control", "windowTitle": "Mission Control",
@@ -249,7 +249,7 @@
FontFamily="{StaticResource MonoFont}" FontFamily="{StaticResource MonoFont}"
FontSize="{StaticResource FontSizeMono}" FontSize="{StaticResource FontSizeMono}"
Foreground="{DynamicResource AccentBrush}" Foreground="{DynamicResource AccentBrush}"
VerticalAlignment="Center" Margin="0,0,8,0" /> VerticalAlignment="Top" Margin="0,2,8,0" />
<TextBox Grid.Column="1" <TextBox Grid.Column="1"
Name="ReviewInput" Name="ReviewInput"
Classes="review-prompt" Classes="review-prompt"
@@ -258,12 +258,13 @@
AcceptsReturn="True" AcceptsReturn="True"
TextWrapping="Wrap" TextWrapping="Wrap"
MaxHeight="160" MaxHeight="160"
PlaceholderText="Feedback for the next run…" PlaceholderText="{loc:Tr session.reviewFeedbackPlaceholder}"
VerticalContentAlignment="Center" VerticalContentAlignment="Top"
ScrollViewer.VerticalScrollBarVisibility="Auto"
FontFamily="{StaticResource MonoFont}" FontFamily="{StaticResource MonoFont}"
FontSize="{StaticResource FontSizeMono}" /> FontSize="{StaticResource FontSizeMono}" />
<Button Grid.Column="2" Classes="prompt-action accent" Content="[Resume]" <Button Grid.Column="2" Classes="prompt-action accent" Content="[Resume]"
VerticalAlignment="Center" Margin="12,0,0,0" VerticalAlignment="Top" Margin="12,2,0,0"
ToolTip.Tip="{loc:Tr session.reviewContinueTip}" ToolTip.Tip="{loc:Tr session.reviewContinueTip}"
Command="{Binding RejectReviewCommand}" /> Command="{Binding RejectReviewCommand}" />
</Grid> </Grid>