From 819629469d5f4c182ce74ad6ec1f9c44cbc7fcf8 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:37:09 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20feat(web):=20what=20blocks=20the?= =?UTF-8?q?=20task=20stays=20in=20sight?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dependencies join the pinned mast beside status, date and the people: a blocker is the reason the work is stopped, and it belongs where the eye already is, not below a description of any length. A task can be blocked by any number of others, so the list keeps three whole rows and pans inside itself — silently, the house way — instead of taking the panel. --- crates/izlek-web/src/detail.rs | 43 +++++++++++++++++----------------- style/main.scss | 15 ++++++++++++ 2 files changed, 37 insertions(+), 21 deletions(-) diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs index 46c0e9d..990fa6c 100644 --- a/crates/izlek-web/src/detail.rs +++ b/crates/izlek-web/src/detail.rs @@ -1527,6 +1527,28 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool, tab: Tab) (refused(cx, "move_card", lang).await?) + +
+
+ (t(lang, Key::Dependencies)) +
+ if may_write { + (link_picker(cx, &detail.id, &linkable, lang).await?) + } +
+ if has_deps { +
+ for edge in &detail.blocked_by { + (dep_row(cx, &detail.id, edge, Direction::BlockedBy, may_write, lang).await?) + } + for edge in &detail.blocks { + (dep_row(cx, &detail.id, edge, Direction::Blocks, may_write, lang).await?) + } +
+ } else { +

(t(lang, Key::NoDependencies))

+ } +
} @@ -1534,27 +1556,6 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool, tab: Tab)
if tab == Tab::Task { -
-
- (t(lang, Key::Dependencies)) -
- if may_write { - (link_picker(cx, &detail.id, &linkable, lang).await?) - } -
- if has_deps { -
- for edge in &detail.blocked_by { - (dep_row(cx, &detail.id, edge, Direction::BlockedBy, may_write, lang).await?) - } - for edge in &detail.blocks { - (dep_row(cx, &detail.id, edge, Direction::Blocks, may_write, lang).await?) - } -
- } else { -

(t(lang, Key::NoDependencies))

- } -
(t(lang, Key::Description)) diff --git a/style/main.scss b/style/main.scss index def6f55..ba6cd99 100644 --- a/style/main.scss +++ b/style/main.scss @@ -1092,6 +1092,21 @@ img.avatar { flex: none; } +// Dependencies ride in the mast, and a task can be blocked by any number of +// others — so the list keeps three whole rows' worth of room and pans inside itself, +// silently, rather than pushing the task's own text off the screen. +.detail-mast .dep-list { + max-height: 160px; + overflow-y: auto; + scrollbar-width: none; + + &::-webkit-scrollbar { display: none; } +} + +.detail-mast .detail-block { + margin-top: 14px; +} + .detail-body { flex: 1; min-height: 0;