diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs index 8d3d4ea..2b174a1 100644 --- a/crates/izlek-web/src/detail.rs +++ b/crates/izlek-web/src/detail.rs @@ -946,6 +946,19 @@ pub(crate) mod glyph { } } + /// An open part. Deliberately not the padlock: a dependency row's lock + /// means "something is in front of this", and a subtask that is simply + /// unfinished is not blocked by anything. + pub async fn ring(cx: &Cx) -> Result { + view! { + cx => + + } + } + pub async fn tick(cx: &Cx) -> Result { view! { cx => @@ -1409,12 +1422,18 @@ async fn subtask_row( } view! { cx => -
- if done { (glyph::tick(cx).await?) } else { (glyph::lock(cx).await?) } - (part.task_key.clone()) - (part.title.clone()) +
+ // One link, not two: the key and the title are the same target, + // so the whole of the row's text is the way in. + + + if done { (glyph::tick(cx).await?) } else { (glyph::ring(cx).await?) } + + (part.task_key.clone()) + (part.title.clone()) +
- (status) + (status)
for face in faces { (face) }
@@ -1683,7 +1702,9 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool, tab: Tab)
if let Some(parent) = detail.parent.clone() { - (format!("{} {}", t(lang, Key::PartOf), parent.task_key)) + "\u{2190}" + (parent.task_key.clone()) + (parent.title.clone()) } (detail.task_key.clone()) diff --git a/crates/izlek-web/src/dropdown.rs b/crates/izlek-web/src/dropdown.rs index 595c89f..3db2770 100644 --- a/crates/izlek-web/src/dropdown.rs +++ b/crates/izlek-web/src/dropdown.rs @@ -10,6 +10,33 @@ //! visible trigger — same closed look as the select it replaces — and a //! `position: fixed` panel of option rows, portaled onto ``, stands //! in for the OS popup. +//! +//! ## The whole box is the hit area +//! +//! The trigger is one child among several inside a control box — a status +//! dot before it, a chevron after it, the box's own padding around all of +//! them — so a button-only listener leaves dead zones exactly where the +//! control looks clickable. That bug has been fixed one control at a time +//! before; this is the version that cannot come back. A delegated listener +//! walks up from whatever was clicked and, on finding the element that +//! *directly* contains a single `.dd-trigger`, opens that trigger's panel. +//! +//! "Directly contains" is the whole of the rule: it pins the hit area to +//! the visual box and no further, so a click on a field's outer row or on +//! the modal around it does not reach in and open something. Nothing has to +//! be marked up for this to work — a new control gets it by existing, which +//! is what makes it structural rather than another remembered convention. +//! +//! Anything else genuinely interactive keeps its own click — a link, a +//! button, a text field. `