fix: adjust timeline layout for time ruler height

Increase gutter-lanes height by 24px to align with the time ruler above the
annotation lanes. Update timeline-body-scroll padding to match.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Your Name 2026-06-30 16:10:26 -04:00
parent 1cdb0de042
commit e964347e51

View file

@ -397,7 +397,7 @@
[:div.playhead.timeline-playhead {:ref (fn [n] (reset! playhead-el n))} [:div.playhead.timeline-playhead {:ref (fn [n] (reset! playhead-el n))}
[:div.playhead-handle]] [:div.playhead-handle]]
[:div.timeline-head [:div.timeline-head
[:div.gutter-lanes {:style {:height lane-h}} [:div.gutter-lanes {:style {:height (+ lane-h 24)}}
[:button.track-toggle {:title (if @tracks-open? "Collapse track names" "Show track names") [:button.track-toggle {:title (if @tracks-open? "Collapse track names" "Show track names")
:on-click #(swap! tracks-open? not)} :on-click #(swap! tracks-open? not)}
(if @tracks-open? "<- HIDE" "->")]] (if @tracks-open? "<- HIDE" "->")]]
@ -435,7 +435,7 @@
[:div.ann-bar-label {:style {:top (* i 18) [:div.ann-bar-label {:style {:top (* i 18)
:left (+ 4 (px lo fps zoom))}} (:name a)])]]] :left (+ 4 (px lo fps zoom))}} (:name a)])]]]
[:div.timeline-body-scroll {:ref (fn [n] (reset! body-scroll-el n)) [:div.timeline-body-scroll {:ref (fn [n] (reset! body-scroll-el n))
:style {:padding-top lane-h}} :style {:padding-top (+ lane-h 24)}}
[:div.gutter-tracks [:div.gutter-tracks
(for [t tracks] (for [t tracks]
^{:key (:id t)} ^{:key (:id t)}