Skip to content

fix(admin): a record's, review's and digest's actions take a line each at large text on a phone - #944

Merged
sickerine merged 2 commits into
mainfrom
fix/admin-actions-wrap-large-text
Nov 26, 2026
Merged

sickerine merged 2 commits into
mainfrom
fix/admin-actions-wrap-large-text

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

Found by the daily QA of 26 November, checking #941.

Problem

The record editor's actions (Send to queue and Publish), the review queue's (Publish version and Decline) and a digest's sit side by side as one-line buttons of a fixed height. At large text on a phone their labels were cut, measured on Sources QA:

390 at 150% 390 at 200% 360 at 200% 320 at 200%
Send to queue 10px cut 46px 54px 64px
Publish version 1px 65px 80px 91px

Change

Two actions side by side need about 13 to 14rem of row, which the admin has under about 17.3rem of width. Under 17.5rem (@container admin, phones only, in globals.css beside the header's rule from #840) each action takes a line of its own at full width. A phone at normal text has at least 20rem, so it never stacks there. Where even the full width is too narrow (320px at 200%), a label wraps between its words beside its icon, which stays on the first line. A bordered action (Publish version) gives its 1px border back from its padding, so stacked actions are all one height.

Checks

The CSS injected into Sources QA's live admin, with the class on the rows, compared with the page as it is (Chromium, WebKit for the phone sizes):

  • 390, 360 and 320 at 100%, 430 at 150%, 1440 at 100% and 200%: identical (same widths, same 36, 54 or 72px heights, one line).
  • 390 at 150%, 390 and 360 at 200%: one action a line, full width, nothing cut.
  • 320 at 200%: the same, with "Send to queue" and "Publish version" on two lines beside their icon, its centre within 0.5px of the first line's.
  • Stacked, every action is 72px at 200% on one line, as before.
  • npm run quality:fallow -- --base origin/main (pass, after simplifying a selector it flagged), npm run check:ui-rules, eslint on the changed files.
  • Reviewed by GPT-6.1 Sol: one finding (stacked, the bordered Publish version was 2px taller than Decline), fixed as above.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd9df160-6e36-49d7-9f0a-f72bcdf38186
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T09:29:09.639062Z ce43b67 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sickerine
sickerine merged commit bf0b1be into main Nov 26, 2026
7 checks passed
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