← Back to Pull requests

Wrap Settings delete confirmation flyouts instead of scrolling horizontally #20868

Closed
unknown closed this pull request without merging on Oct 30, 2026 00:59 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 23:47 UTC
Author

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 CustomFlyoutPresenterStyle to those flyouts so the message wraps. ## References and Relevant Issues Closes #20577

Detailed Description of the Pull Request / Additional comments


The default FlyoutPresenter enables horizontal scrolling, so its content is measured with infinite width and the message TextBlock (CustomFlyoutTextStyle, TextWrapping="Wrap") never wraps. Once the message is wider than the presenter's MaxWidth, which happens at 200% text size, it gets clipped behind a horizontal scrollbar. CustomFlyoutPresenterStyle turns 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 CascadiaPackage Debug|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 a HorizontalScrollBar inside the flyout. Delete shortcut shows the same HorizontalScrollBar, 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 no HorizontalScrollBar in the UIA tree. - The two key binding delete flyouts get the identical one-attribute change but weren't checked visually.

PR Checklist


  • Closes #20577
  • Diff: 418 lines (+313 / -105) across 5 files Reviewer: DHowett Review duration: 72m
    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
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.0% (MEDIUM) · Higher = larger blast radius
    45.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.4% · Safe to merge
    19.4%