From b1d763c677d3f11b7c3ad98bfd92ff22b6d3121b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 30 Aug 2026 01:26:11 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20fix(web):=20the=20people=20get?= =?UTF-8?q?=20a=20row=20of=20their=20own,=20and=20names=20stay=20whole?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A third of a 560px panel never held two names, so the chips ellipsised to "Ahm…" and the deadline lost its own word to the squeeze. Status and the date share the top row now; assignees take the full width beneath, where four names fit and read. Past four the labels all go together and the chips stand as avatars — never half of them, which read as a fault. --- crates/izlek-web/src/detail.rs | 2 +- style/_instrument.scss | 3 --- style/main.scss | 22 +++++++++++----------- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs index fc102f7..f0f23b8 100644 --- a/crates/izlek-web/src/detail.rs +++ b/crates/izlek-web/src/detail.rs @@ -1511,7 +1511,7 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool, tab: Tab) (t(lang, Key::Deadline)) (deadline_control(cx, &detail, today, may_write, lang).await?) -
+
(format!("{} — {}", t(lang, Key::Assignees), detail.assignees.len()))
for person in &detail.assignees { diff --git a/style/_instrument.scss b/style/_instrument.scss index da0787a..36b9185 100644 --- a/style/_instrument.scss +++ b/style/_instrument.scss @@ -245,10 +245,7 @@ font-size: 20px; } -// Status and a date are short; the people carry names, so the third column -// takes the slack rather than ellipsising them to a single letter. [data-ui="instrument"] .detail-fields { - grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 10px; padding: 0; margin-top: 18px; diff --git a/style/main.scss b/style/main.scss index c7a778e..90edbfe 100644 --- a/style/main.scss +++ b/style/main.scss @@ -1488,14 +1488,20 @@ img.avatar { // -- the field row ---------------------------------------------------------- +// Status and a date are short and sit side by side; the people carry names, +// which no third of a panel holds, so they take a row of their own. .detail-fields { display: grid; - grid-template-columns: 1fr 1.5fr 1fr; + grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 18px 24px 0; margin-top: 2px; } +.detail-field-people { + grid-column: 1 / -1; +} + .detail-field { display: flex; flex-direction: column; @@ -1725,7 +1731,6 @@ img.avatar { .assignee-name { flex: 0 1 auto; min-width: 0; - max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -1735,15 +1740,10 @@ img.avatar { // Two people share one cell, so each name gives up half its room before the // policy below drops names altogether. -.detail-assignees:has(.assignee-chip:nth-child(2)) .assignee-name { max-width: 76px; } - -// Three people is the whole company here, and three first names fit. Past that -// the labels go, in order, and the chips read as avatars — legible where a -// clipped name is not. The round "+" keeps its size either way. -.detail-assignees:has(.assignee-chip:nth-child(4)) { - .assignee-chip:nth-child(-n + 2) .assignee-name { display: none; } -} - +// Four names fit the full-width row, sharing the slack evenly. Past that the +// labels go together — never half of them, which reads as a rendering fault — +// and the chips stand as avatars, legible where a clipped name is not. The +// round "+" keeps its size either way. .detail-assignees:has(.assignee-chip:nth-child(5)) { .assignee-name { display: none; } }