fix: make model-card click reliable and remove Tailwind CDN warning

- Use encoded model key in data attribute to avoid lookup mismatch
- Decode key on click before resolving showByModel data
- Guard localStorage writes with try/catch to avoid silent UI failures
- Scroll details section into view when a card is clicked
- Remove tailwindcdn script from template (use compiled CSS only)
This commit is contained in:
Luca Sacchi Ricciardi
2026-04-24 20:04:06 +02:00
parent 57663400ce
commit 0789e5b8e9
2 changed files with 19 additions and 7 deletions
-2
View File
@@ -7,8 +7,6 @@
<link rel="icon" href="/favicon.ico" sizes="any">
<!-- Tailwind CSS (compiled for production) -->
<link rel="stylesheet" href="/static/css/output.css">
<!-- Fallback CDN for development (if output.css not available) -->
<script src="https://cdn.tailwindcss.com"></script>
<style>
@keyframes spin {
to { transform: rotate(360deg); }