From 4a870a7f18f447f823e145d1f32268af2d7797e4 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 6 Aug 2026 11:22:26 -0400 Subject: [PATCH] fix(ui): keep search filter visible on system collections --- templates/collections.templ | 26 +++++++++++++------------- templates/collections_templ.go | 8 ++++---- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/templates/collections.templ b/templates/collections.templ index b8480d4..aac3a23 100644 --- a/templates/collections.templ +++ b/templates/collections.templ @@ -139,17 +139,17 @@ templ CollectionDetail(user User, collection CollectionData, books []handlers.Bo

Books in this Collection

- if !collection.IsSystem { -
-
- -
+
+
+ +
+ if !collection.IsSystem { -
- } + } +
if len(books) == 0 { diff --git a/templates/collections_templ.go b/templates/collections_templ.go index ea1c0d9..68ef4b3 100644 --- a/templates/collections_templ.go +++ b/templates/collections_templ.go @@ -311,12 +311,12 @@ func CollectionDetail(user User, collection CollectionData, books []handlers.Boo if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "

Books in this Collection

0\" x-text=\"selectedBooks.length + ' selected'\" class=\"badge\" style=\"display: none; background-color: var(--accent); color: var(--bg-primary);\">
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "

Books in this Collection

0\" x-text=\"selectedBooks.length + ' selected'\" class=\"badge\" style=\"display: none; background-color: var(--accent); color: var(--bg-primary);\">
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } if !collection.IsSystem { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "Add Books") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }