Skip to content

fix(queue): prevent Subject column from collapsing to zero width - #121

Merged
katsar0v merged 1 commit into
mainfrom
fix/issue-120-subject-column-width
Jul 21, 2026
Merged

fix(queue): prevent Subject column from collapsing to zero width#121
katsar0v merged 1 commit into
mainfrom
fix/issue-120-subject-column-width

Conversation

@katsar0v

Copy link
Copy Markdown
Owner

Summary

Fixes #120.

On the Sending queue admin page the Subject (Тема) column was collapsing to a near-zero width because the table used WordPress' fixed class (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

  • Removed fixed from the queue table classes and wrapped each table in .mskd-table-responsive so the Subject column can absorb remaining space and the table scrolls horizontally on narrow viewports.
  • Added .mskd-col-subject to the Subject header and .mskd-subject-cell to Subject cells.
  • Added SCSS rules giving the Subject column width: 100% and a 220px minimum width, plus word-break: normal / overflow-wrap: anywhere to avoid per-character breaking.
  • Applied the same fix to both admin/partials/queue.php and admin/partials/queue-legacy.php.

Verification

  • composer phpcs passes on the changed PHP files.
  • composer test:unit passes (232 tests, 500 assertions).
  • npm run sass:build compiles successfully and the generated CSS contains the new selectors.

- 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>
@katsar0v
katsar0v merged commit fa0472f into main Jul 21, 2026
5 checks passed
@katsar0v
katsar0v deleted the fix/issue-120-subject-column-width branch July 22, 2026 06:23
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.

fix: Subject column collapses to one-character-per-line width on Sending queue page

1 participant