From 913ae53f7d9798f1e86a63f76a1d3814a7aa75cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 22 Oct 2026 03:24:03 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20the=20merge=20queue=20row?= =?UTF-8?q?s=20stack=20into=20cards=20on=20phone=20width?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/forge-web/src/pages/merge_queue.rs | 16 ++++---- style/main.scss | 45 +++++++++++++++++++++++ 2 files changed, 53 insertions(+), 8 deletions(-) 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 {