Wrap Settings delete confirmation flyouts instead of scrolling horizontally #20868
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 418 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.361
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #20868"
general
weight: 0.35
DHowett
We were clipping a flyout at 200% scalling. here is before and after screenshots. This affected a few other spots and we caught those.
!Delete profile flyout before and after: before, the message is clipped at "delete this pr"; after, it wraps to two lines
!Delete shortcut flyout after the fix: the message wraps to two lines
\- clint
AI Summary of the Pull Request
At 200% text scaling, the "Delete profile" confirmation flyout clips its message ("Are you sure you want to delete this pr…") and puts the rest behind a horizontal scrollbar that keyboard users can't reach. The delete-shortcut and delete-key-binding confirmations have the same problem. This applies the existing
CustomFlyoutPresenterStyleto those flyouts so the message wraps. ## References and Relevant Issues Closes #20577Detailed Description of the Pull Request / Additional comments
The default
FlyoutPresenterenables horizontal scrolling, so its content is measured with infinite width and the messageTextBlock(CustomFlyoutTextStyle,TextWrapping="Wrap") never wraps. Once the message is wider than the presenter'sMaxWidth, which happens at 200% text size, it gets clipped behind a horizontal scrollbar.CustomFlyoutPresenterStyleturns horizontal scrolling off and is already used by the color scheme and compatibility delete flyouts. This applies it to the four confirmation flyouts that were missing it: - Profile > Delete profile (Profiles_Base.xaml) - Shortcuts > Edit shortcut > Delete shortcut (EditAction.xaml) - Key binding delete on the Shortcuts page (Actions.xaml) and the Edit shortcut page (EditAction.xaml)Screenshots (200% text size, 1680×1050 window)
!Delete profile flyout before and after: before, the message is clipped at "delete this pr"; after, it wraps to two lines
!Delete shortcut flyout after the fix: the message wraps to two lines
<details>
<summary>Full window, before / after</summary>
!Before: Settings, Profiles > Profile 7 with the clipped delete confirmation flyout
!After: Settings, Profiles > Profile 7 with the wrapped delete confirmation flyout
</details>
Validation Steps
Performed - Built
CascadiaPackageDebug|ARM64, deployed it, and set Windows text size to 200% (window size 1680×1050, as in the bug). - Before (main): the Delete profile flyout clips its message, and the UIA tree has aHorizontalScrollBarinside the flyout. Delete shortcut shows the sameHorizontalScrollBar, with a 548px message. - After: in both the Delete profile and Delete shortcut flyouts, the message wraps to two lines (510×83 inside a 542×182 flyout) and there's noHorizontalScrollBarin the UIA tree. - The two key binding delete flyouts get the identical one-attribute change but weren't checked visually.PR Checklist