From 3325b6446310f0c5b2f6306178538a3e0bdd0725 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 22 Oct 2026 14:10:42 -0400 Subject: [PATCH] fix(audio-player): precision rail rendered transparent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alpine :style string bindings REPLACE the element's style attribute — the rail's static background/border/z-index were wiped the moment the binding evaluated, leaving bare text over the transports. Fold all declarations into the single :style binding. --- templates/audio_reader.templ | 3 +-- templates/audio_reader_templ.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/audio_reader.templ b/templates/audio_reader.templ index 5a68b1b4..4e0bc95b 100644 --- a/templates/audio_reader.templ +++ b/templates/audio_reader.templ @@ -241,8 +241,7 @@ templ AudioReader(user User, metadata ReaderMetadata) { x-show="railVisible" x-cloak class="absolute top-full mt-1 inset-x-0 h-12 rounded-lg shadow-lg p-1.5 pointer-events-none" - style="background-color: var(--bg-secondary); border: 1px solid var(--border); z-index: 30;" - :style="railLiftY ? 'transform: translateY(' + railLiftY + 'px);' : ''" + :style="'background-color: var(--bg-secondary); border: 1px solid var(--border); z-index: 30;' + (railLiftY ? ' transform: translateY(' + railLiftY + 'px);' : '')" >
diff --git a/templates/audio_reader_templ.go b/templates/audio_reader_templ.go index c3bf4446..fa1b8506 100644 --- a/templates/audio_reader_templ.go +++ b/templates/audio_reader_templ.go @@ -194,7 +194,7 @@ func AudioReader(user User, metadata ReaderMetadata) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "

—

0:00
Chapters

No chapters detected for this audiobook.

Bookmarks

No bookmarks yet — tap the button to save your position.

Bookmark at 0:00

Shortcuts & interactions
Mouse & touch
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "

—

0:00
Chapters

No chapters detected for this audiobook.

Bookmarks

No bookmarks yet — tap the button to save your position.

Bookmark at 0:00

Shortcuts & interactions
Mouse & touch
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }