diff --git a/crates/forge-web/src/pages/merge_queue.rs b/crates/forge-web/src/pages/merge_queue.rs index 75a45bf..08aa832 100644 --- a/crates/forge-web/src/pages/merge_queue.rs +++ b/crates/forge-web/src/pages/merge_queue.rs @@ -398,20 +398,20 @@ async fn queue_body( for row in rows.iter() { - (row.position.as_str()) - "#"(row.pull_number)" "(row.pull_title.as_str()) - (row.branch.as_str()) - (row.state) - (row.by.as_str()) - (row.queued.as_str()) - + (row.position.as_str()) + "#"(row.pull_number)" "(row.pull_title.as_str()) + (row.branch.as_str()) + (row.state) + (row.by.as_str()) + (row.queued.as_str()) + if let Some(href) = row.run_href.as_ref() { (row.run_label.as_str()) } else { (row.run_label.as_str()) } - (row.reason.as_str()) + (row.reason.as_str()) if row.remove {
diff --git a/style/main.scss b/style/main.scss index 8ecd0fb..02d648b 100644 --- a/style/main.scss +++ b/style/main.scss @@ -4493,6 +4493,51 @@ $ansi-colours: ( } } +// Phone: each queue row is a card, every cell a label and value row (the runners' layout). +@media (max-width: 720px) { + .queue-table { + display: block; + + thead { + display: none; + } + + tbody, + tr { + display: block; + } + + tr { + padding: 12px 0; + border-bottom: 1px solid var(--border); + } + + th, + td { + display: block; + width: auto; + padding: 0; + border: 0; + } + + td[data-label] { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + min-height: 36px; + min-width: 0; + + &::before { + content: attr(data-label); + flex: none; + color: var(--muted); + font-size: 0.78125rem; + } + } + } +} + // Phone: each runner is a card, every cell a label and value row, the menu at the card's end. @media (max-width: 720px) { .table.runners {