Open Bug 2064042 Opened 3 months ago Updated 2 months ago

Content is partially cutoff in Privacy widget medium size when there are longer messages shown with DE, FR locales

Categories

(Firefox :: New Tab Page, defect)

Desktop
All
defect

Tracking

()

Tracking Status
firefox154 --- affected
firefox155 --- affected
firefox156 --- affected

People

(Reporter: csasca, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [hnt][hnt-wattle])

Attachments

(1 file)

Affected versions

  • Firefox 154.0 (New Tab addon - 156.0.20260816.233558)
  • Firefox 156.0a1

Affected platforms

  • Windows 11 x64
  • Ubuntu 26.04
  • macOS 27

Preconditions

  • Use builds with different locales (FR, DE for example)
  • Have multiple trackers blocked (3 digit number)

Steps to reproduce

  1. Enable the privacy widget on medium size
  2. Wait for a longer message to appear (2-3 rows)

Expected result

  • No UI issues are seen on the widget main message

Actual result

  • When there is a longer message displayed, the action button is pushed downwards and gets cutoff. Also the message "Trackers blocked today accross x sites" extends over the three dots menu when there are 3 digits trackers blocked displayed.

Regression range

  • New feature

Additional notes

  • The issue can be seen in the attachment here (windows), and in the following video for macOS.

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Triage / fix plan (reasoned from the source; not built or run).

Likely root cause. The medium Privacy card is a hard-height box that is only tall enough for a single-line secondary message, and it clips anything that doesn't fit:

Proposed approach (all in _Privacy.scss; no JSX change should be needed):

  1. Reserve the menu gutter — add a padding-inline-end (≈ --space-xlarge, the ghost button's footprint) to .privacy-count (or .privacy-count-text) in the .has-tip-msg.medium-widget / .has-streak.medium-widget case, so the localized label can never reach under the "…" button.
  2. Make the overflow absorb into the message instead of the CTA — set min-height: 0 on .privacy-body and on .privacy-tip-content / .privacy-streak, give .privacy-tip-message a clamp in the medium layout (display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden, the pattern already used in _Lists.scss), and pin the CTA with flex: 0 0 auto so it is the last thing to lose space rather than the first.
  3. Tighten the medium tip layout's vertical budget — reduce .privacy-count-number's font-size (_Privacy.scss#205-210) under .has-tip-msg.medium-widget, and/or drop the .privacy-divider margin-block-end there.

A design decision is embedded in (2): whether long localized copy should be truncated or whether the medium card should be allowed to grow. Given grid-auto-rows: var(--row-height) and grid-row: span 2 on the medium card, growing it would desynchronise the widget grid, so clamping is the cheaper fix — worth a UX sign-off before landing.

Existing tests. browser/extensions/newtab/test/jest/content-src/components/Widgets/Privacy.test.jsx covers the variants/count formatting/CTA but asserts nothing about layout (jsdom doesn't paint), and there is no browser-chrome test that renders the privacy widget at all. Real-layout coverage of this widget is a gap; a mochitest in browser/extensions/newtab/test/browser/ measuring that .privacy-cta stays inside the card's client box (in the style of browser_newtab_side_by_side_layout.js) would be the natural regression test.

Severity: S3 — a localized layout defect that hides an action button and overlaps the menu affordance for all longer-string locales at medium size, but it is non-functional-loss and has an in-product workaround (resize the widget to large).


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-wrong-file, ai-triage-wrong-cause, ai-triage-hallucination, ai-triage-out-of-scope.

Severity: -- → S3
Whiteboard: [hnt][hnt-wattle]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: