fix(queue): prevent Subject column from collapsing to zero width - #121
Merged
Conversation
- Remove fixed table-layout from queue tables so the Subject column can absorb remaining horizontal space instead of being squeezed. - Wrap tables in .mskd-table-responsive for horizontal scrolling on narrow viewports. - Add .mskd-col-subject / .mskd-subject-cell classes with min-width and word-breaking rules to keep subject text readable. - Apply the same fix to both the campaigns queue and the legacy queue pages. Fixes #120 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #120.
On the Sending queue admin page the Subject (Тема) column was collapsing to a near-zero width because the table used WordPress'
fixedclass (table-layout: fixed) while every other column had an explicit pixel width. The only flexible column (Subject) was squeezed to its minimum content width, causing Bulgarian subject text to wrap one character per line.Changes
fixedfrom the queue table classes and wrapped each table in.mskd-table-responsiveso the Subject column can absorb remaining space and the table scrolls horizontally on narrow viewports..mskd-col-subjectto the Subject header and.mskd-subject-cellto Subject cells.width: 100%and a220pxminimum width, plusword-break: normal/overflow-wrap: anywhereto avoid per-character breaking.admin/partials/queue.phpandadmin/partials/queue-legacy.php.Verification
composer phpcspasses on the changed PHP files.composer test:unitpasses (232 tests, 500 assertions).npm run sass:buildcompiles successfully and the generated CSS contains the new selectors.