Keep case-row delete button beside the preview on narrow viewports #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The responsive WebUI work in
a37a1ae(closing #10; plan atdocs/plans/2026-05-30-responsive-webui.md) added a@media (max-width: 640px)block toserver/templates/my_cases.html(block at
my_cases.html:81).Observation (verified)
On the desktop layout each case row is a two-column grid —
grid-template-columns: 1fr auto(my_cases.html:20) — with thecontent (timestamp line + expandable analysis preview) in the
1frcolumn and the action icons (
.case-row .actions,my_cases.html:55)in the
autocolumn, vertically centred beside the content.The narrow-viewport block collapses every row variant to a single
column —
grid-template-columns: 1fr(my_cases.html:84-86). Thatmoves
.case-row .actionsonto its own row below the content.Combined with the 44px touch-target rule on the icons
(
my_cases.html:91-92), the delete/reopen button now occupies a full~44px-tall strip stacked under the expandable analysis preview, costing
noticeable vertical space per row on a phone.
Desired outcome
beside the preview text, as it does on desktop, rather than on a
separate row below it.
Possible direction
Claim (unverified): retaining the trailing
autoactions column for.case-rowon narrow widths (i.e. keepinggrid-template-columns: 1fr autoinstead of collapsing to1fr) would place the actionsbeside the content again; only the content sub-elements that genuinely
overflow would then need to stack. The
.has-bulkrow variants(
my_cases.html:21-22) carry a leading checkbox column and may need aseparate column template. To be confirmed when scoped.