From 9429d203bd014c7840d160870b97e62fbbcddd5b Mon Sep 17 00:00:00 2001 From: Francisco Penedo Alvarez Date: Wed, 1 Apr 2026 11:37:27 +0200 Subject: [PATCH] Fix #2: Focus jumps to genre after status change No idea why this is happening, but I solved it by making htmx swap only the user status containers instead of the whole page. This keeps the toggle status intact and prevents the jump. --- src/hxbooks/templates/book/detail.html.j2 | 4 ++-- src/hxbooks/templates/components/reading_status.html.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hxbooks/templates/book/detail.html.j2 b/src/hxbooks/templates/book/detail.html.j2 index 9024223..946c162 100644 --- a/src/hxbooks/templates/book/detail.html.j2 +++ b/src/hxbooks/templates/book/detail.html.j2 @@ -23,7 +23,7 @@ {% import 'components/user_book_vars.html.j2' as vars with context %}
-
+