Repository navigation
fix(submissions): keep a row's action buttons on one line - #2051
Conversation
The fixed-layout table gave every column but ID an equal share, so the Actions column (228 px in a 1700 px table) was narrower than Edit, PDF and Trash need, while Status and Date sat half empty. Status and Date now take 9em, Actions 22em, and the buttons sit in a flex row with an even gap; a trashed row's four buttons still wrap. Measured by a render at 1700, 1366 and 1180 px. Closes #2050 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018srx5hc431EYmG4MHUr2KA
On the submissions screen the paragraph followed the status links and the search box, which WordPress floats left and right, and ran into the gap between them. It now carries ffc-pii-reveal-bar, which clears both; on the screens without floats it changes nothing. Refs #2050 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018srx5hc431EYmG4MHUr2KA
|
Added to this PR, same screen: "Reveal this page" sat between the status links and the search box.
Measured in Chromium with the two floats: before, the button's top was at 8 px and its left at 222 px, beside the floats; after, at 34 px (the floats' bottom) and 8 px. Generated by Claude Code |
…-actions-width # Conflicts: # CHANGELOG.md
Closes #2050.
Problem
On Certificates → Submissions, a row's Edit, PDF and Trash buttons broke onto two lines although Status and Date sat half empty. The table is
table-layout: fixedand only ID has a width, so every column got an equal share. Measured in a 1700 px table: Actions 228 px, while the three buttons need 236 px plus gaps and padding. Trash also had no gap before it, because the buttons were separated by text spaces and one space was missing.Change
ffc-admin-submissions.css(loaded on this screen only since Stylesheets: ffc-admin-submissions.css is named for one screen and loads on every FFC screen #1923):.column-statusand.column-submission_date:9em;.column-actions:22em;.ffc-submission-actions: a flex row withflex-wrapand thexsspacing gap.SubmissionsList::render_actions()wraps the buttons in that container; the button logic moved unchanged toaction_buttons().Measured (Chromium render of the row with the plugin's sheets)
Before: Actions 228 px and two lines at 1700 px. The text columns (Form, E-mail, Data) share what is left.
Tests
SubmissionsListTest: the actions cell is oneffc-submission-actionscontainer (60 tests pass).Risk
Checklist
develop; no version bumpCHANGELOG.md: one bullet under[Unreleased]→ Fixed, citing Submissions: the row action buttons wrap although the table has room #2050Waits as a draft until #2049 merges (one PR armed at a time).
Generated by Claude Code