diff --git a/frontend/src/arthur/ui/timeline.cljs b/frontend/src/arthur/ui/timeline.cljs index ef29c74..93e5af4 100644 --- a/frontend/src/arthur/ui/timeline.cljs +++ b/frontend/src/arthur/ui/timeline.cljs @@ -1316,9 +1316,11 @@ to move two elements' `left`. That cost more than painting the frame did and starved the rAF loop painting it, which ran at 16fps against a 60fps ceiling." [tag frames] - (let [f @(rf/subscribe [::render/open-frame])] - [tag {:style {:left (edge% f frames) :width (edge% 1 frames)}} - (when (= tag :div.tl-knob) f)])) + (let [f @(rf/subscribe [::render/open-frame]) + head? (= tag :div.tl-knob)] + ;; The head is as wide as its number needs and never narrower than the frame. + [tag {:style {:left (edge% f frames) (if head? :min-width :width) (edge% 1 frames)}} + (when head? f)])) (defn- outside-marks "The frames playback leaves out, shaded, and the span it plays, banded on the diff --git a/static/arthur/app.css b/static/arthur/app.css index bb016f1..d3363bb 100644 --- a/static/arthur/app.css +++ b/static/arthur/app.css @@ -1354,9 +1354,9 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); } top: 0; bottom: 0; z-index: 1; - min-width: 16px; box-sizing: border-box; padding: 0 3px; + white-space: nowrap; pointer-events: none; background: var(--playhead); color: #fff;