Skip to content

[6.x] Forms 2: Fade long condition summaries before the Preview button - #16160

Merged
jaygeorge merged 4 commits into
6.xfrom
16160-fade-long-connection-summaries
Dec 3, 2026
Merged

jaygeorge merged 4 commits into
6.xfrom
16160-fade-long-connection-summaries

Conversation

@jaygeorge

@jaygeorge jaygeorge commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Description of the Problem

When an email or webhook's condition summary is too long for its row, it's cut off mid-pill, and the cut-off pill runs straight into the Preview button so the two blend together.

image

What this PR Does

Long summaries now fade out, finishing just before the Preview button. Short ones are left alone.

It uses the existing st-mask-horizontal-overflow utility rather than measuring overflow in JS. That needed three small fixes to the utility:

  • It only fades when the content actually overflows. Before, its always-on mask-image faded the last 1rem even when everything fitted. The summary is only as wide as its content, so every short summary would have had its last pill faded.
  • It fades the left end in right-to-left languages.
  • A new --mask-start variable leaves a clear strip at the edge, used here for the gap before Preview.

The summary never scrolls, so it also sets animation-range: 0 100%. With the utility's default range, a summary that only overflowed by a little (under about 24px) still got the hard cut.

The utility's other users (Bard and Replicator set headers, the listing filters bar) only change when their content fits: they're no longer faded.

Before / After

image

How to Reproduce

  1. Create a form with two fields with long display names.
  2. On its Connect tab, open Email and add an email with a couple of equals conditions on those fields.
  3. The summary is cut off against Preview.

- Drop the always-on mask-image, so content that fits isn't faded
- Fade the left end in right-to-left languages
- Add --mask-start for a fully clear strip at the edge
@jaygeorge
jaygeorge enabled auto-merge (squash) December 3, 2026 10:36
@jaygeorge
jaygeorge merged commit 1797e40 into 6.x Dec 3, 2026
65 checks passed
@jaygeorge
jaygeorge deleted the 16160-fade-long-connection-summaries branch December 3, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant