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; } }