Skip to content

Fix worker task table column widths - #1521

Merged
mher merged 1 commit into
mher:masterfrom
twofourlabs:fix/worker-task-args-column-width
Sep 12, 2026
Merged

mher merged 1 commit into
mher:masterfrom
twofourlabs:fix/worker-task-args-column-width

Conversation

@ShubhAtWork

@ShubhAtWork ShubhAtWork commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #1520.

On the worker page, a task with a large kwargs value (a long list of ids in my case) takes up almost the whole table width, so Name, UUID, Ack, PID and args end up wrapping one character per line.

The tasks table already handles this - args, kwargs and result are rendered with class="text-nowrap overflow-auto", and flower.css caps that at 400px with the overflow scrollable. This applies the same classes to the args/kwargs cells in the Active, Scheduled and Reserved tables, so the full value is still there if you scroll the cell.

Template change only, no CSS or JS.

@ShubhAtWork
ShubhAtWork force-pushed the fix/worker-task-args-column-width branch 2 times, most recently from 299821f to b739ef2 Compare September 11, 2026 07:50
@ShubhAtWork ShubhAtWork changed the title Keep long task arguments from collapsing worker task tables Fix worker task table column widths Sep 11, 2026
A task with a large kwargs value takes up almost the whole width of the
Active/Scheduled/Reserved task tables, which squeezes the other columns
down to character-by-character wrapping.

Use the same text-nowrap/overflow-auto classes the tasks table already
uses for args, kwargs and result. flower.css caps those at 400px and
scrolls the rest.
@ShubhAtWork
ShubhAtWork force-pushed the fix/worker-task-args-column-width branch from b739ef2 to e173cba Compare September 11, 2026 07:51
@mher
mher merged commit 8bf3563 into mher:master Sep 12, 2026
19 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.

Active Tasks table has broken column widths with large kwargs

2 participants