Skip to content

🎨 Improved tier select sizing in the post preview header - #29727

Merged
weylandswart merged 1 commit into
mainfrom
preview-tier-select-width
Aug 3, 2026
Merged

🎨 Improved tier select sizing in the post preview header#29727
weylandswart merged 1 commit into
mainfrom
preview-tier-select-width

Conversation

@weylandswart

@weylandswart weylandswart commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The tier select in the post preview header (Preview → "Specific tier") was pinned to a fixed 180px. A short tier name like "Bronze" left a wide gap between the label and its chevron, which read as odd next to the segment select beside it, since that one sizes to its content.

The dropdown had no width ceiling at all. Tier names are user-defined, so a long one stretched the dropdown across the viewport — the text-overflow: ellipsis already on the options never fired, because nothing gave it a width to apply against.

The trigger now sizes to the tier name up to a 180px cap, and the dropdown is capped at 280px so longer names truncate.

no ref

The tier select was pinned to a fixed 180px, so a short name like "Bronze"
left a wide gap between the label and its chevron, while the segment select
next to it sized to its content.

The dropdown had no width ceiling at all, so a long tier name stretched it
across the viewport and the ellipsis rule on the options never had a width
to apply against.

The trigger now sizes to the tier name up to 180px, and the dropdown is
capped at 280px so longer names truncate.
@nx-cloud

nx-cloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit d6ebd9b

Command Status Duration Result
nx run @tryghost/admin:test:acceptance ✅ Succeeded 7m 57s View ↗
nx run-many -t test:unit -p @tryghost/admin ✅ Succeeded 3m 42s View ↗
nx run ghost-admin:test ✅ Succeeded 3m 15s View ↗
nx run @tryghost/admin:build ✅ Succeeded 1m 40s View ↗
nx run ghost-monorepo:lint:boundaries ✅ Succeeded 23s View ↗
nx run-many -t lint -p ghost-admin,@tryghost/ad... ✅ Succeeded 1m 5s View ↗
nx run-many --target=build --projects=tag:publi... ✅ Succeeded 1s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-08-03 20:49:17 UTC

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cb2c4d0e-fee2-44a1-9c9e-8ff194604eec

📥 Commits

Reviewing files that changed from the base of the PR and between 2d3b963 and d6ebd9b.

📒 Files selected for processing (1)
  • apps/ember-admin/app/styles/layouts/post-preview.css

Walkthrough

The post preview tier selector changed from fixed 180px sizing to flexible auto-width sizing. Its maximum width remains 180px. The tier dropdown now has a 280px maximum width.

Suggested reviewers: acburdine

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the tier select sizing change in the post preview header.
Description check ✅ Passed The description explains the fixed-width issue, the new size limits, and the truncation behavior.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch preview-tier-select-width

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@weylandswart
weylandswart enabled auto-merge (squash) August 3, 2026 20:42
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.46%. Comparing base (2d3b963) to head (d6ebd9b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #29727   +/-   ##
=======================================
  Coverage   75.46%   75.46%           
=======================================
  Files        1612     1612           
  Lines      141929   141929           
  Branches    17565    17565           
=======================================
  Hits       107106   107106           
  Misses      33751    33751           
  Partials     1072     1072           
Flag Coverage Δ
admin-tests 55.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@weylandswart
weylandswart merged commit 36ca801 into main Aug 3, 2026
48 checks passed
@weylandswart
weylandswart deleted the preview-tier-select-width branch August 3, 2026 20:54
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