feat: always show current-timeline crumb as a reparent drop target

Render the breadcrumb bar even at root so the current context's crumb is always
visible — it already acts as a drop target while dragging, so you can drag an
annotation out onto the current timeline to un-nest it. Back button stays gated
to nested contexts. Also drop the child-card left spine (indentation is enough).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Your Name 2026-07-02 20:21:55 -04:00
parent 65acfbc886
commit 8dd2c9030f
2 changed files with 6 additions and 7 deletions

View file

@ -322,8 +322,7 @@ body { overflow: hidden; background: var(--desktop); background-size: 4px 4px;
color: var(--ink); background: var(--shade); cursor: pointer; color: var(--ink); background: var(--shade); cursor: pointer;
border: 1px solid var(--ink); border-radius: 0; } border: 1px solid var(--ink); border-radius: 0; }
.show-children:hover { background: var(--ink); color: var(--paper); } .show-children:hover { background: var(--ink); color: var(--paper); }
.ann-children { margin: 8px 0 0 10px; padding-left: 8px; .ann-children { margin: 8px 0 0 18px; }
border-left: 2px solid var(--ann-color, var(--ink)); }
.ann-children .ann { margin-bottom: 6px; } .ann-children .ann { margin-bottom: 6px; }
.ann-children .ann:last-child { margin-bottom: 0; } .ann-children .ann:last-child { margin-bottom: 0; }
/* out-of-range warning: annotation references frames its parent timeline trims */ /* out-of-range warning: annotation references frames its parent timeline trims */

View file

@ -1370,11 +1370,11 @@
(defn breadcrumbs [] (defn breadcrumbs []
(let [crumbs @(rf/subscribe [::subs/breadcrumbs])] (let [crumbs @(rf/subscribe [::subs/breadcrumbs])]
(when (> (count crumbs) 1) [:div.crumbs
[:div.crumbs (when (> (count crumbs) 1)
[:button.back-btn {:on-click #(rf/dispatch [::events/collapse])} "← back"] [:button.back-btn {:on-click #(rf/dispatch [::events/collapse])} "← back"])
(for [[i c] (map-indexed vector crumbs)] (for [[i c] (map-indexed vector crumbs)]
^{:key (:id c)} [crumb i c (= i (dec (count crumbs)))])]))) ^{:key (:id c)} [crumb i c (= i (dec (count crumbs)))])]))
;; Timeline tag filter: a button opening a dropdown that lists the project's tags ;; Timeline tag filter: a button opening a dropdown that lists the project's tags
;; (plus a fake "Untagged" entry) with an eye per row. Click a row (or Enter) to ;; (plus a fake "Untagged" entry) with an eye per row. Click a row (or Enter) to