fix: ensure HTML response for search and fix player container
CI / Test (Python 3.11) (push) Has been cancelled
CI / Test (Python 3.12) (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Type Check (push) Has been cancelled
CI / Summary (push) Has been cancelled

- Added html=1 parameter support to router_anime.py for guaranteed HTML fragments
- Added missing #player-container to index.html for HTMX interactions
- Cleaned up legacy CSS .active classes interfering with Alpine.js x-show
This commit is contained in:
root
2026-03-24 12:26:58 +00:00
parent 4e313392d0
commit f99e739ff2
3 changed files with 11 additions and 10 deletions
+5 -2
View File
@@ -3,7 +3,7 @@
{% block content %}
{% include "components/header.html" %}
<!-- Main content - Shown only when authenticated -->
<!-- Main content - Managed by Alpine state -->
<div id="main-content">
{% include "components/home_section.html" %}
@@ -15,7 +15,7 @@
<h2>🎬 Rechercher un Anime</h2>
</div>
<div class="url-form">
<form hx-get="/api/anime/search"
<form hx-get="/api/anime/search?html=1"
hx-target="#animeSearchResults"
hx-indicator="#search-loading"
class="input-group">
@@ -43,6 +43,9 @@
<!-- Anime search results -->
<div id="animeSearchResults" style="margin-bottom: 40px;"></div>
<!-- Player container for HTMX injections -->
<div id="player-container"></div>
<hr style="border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 40px 0;">