fix: null-guard info panel (x-if) + add runtime scale debug logging

This commit is contained in:
2026-10-08 05:36:44 +00:00
parent 88fb870dbb
commit 20ab0e91e4
2 changed files with 10 additions and 5 deletions
+5 -5
View File
@@ -39,9 +39,9 @@
</div>
<!-- Fish Info Panel (right side) -->
<div x-show="store.selectedFish" x-transition.opacity.duration.200ms
<div x-if="store.selectedFish" x-transition.opacity.duration.200ms
class="absolute right-4 top-16 w-72 pointer-events-auto"
x-cloak style="display:none">
x-cloak>
<div class="bg-aqua-900/90 backdrop-blur-md rounded-xl border border-aqua-700/60 p-4 shadow-xl">
<!-- Header -->
<div class="flex items-start justify-between mb-3">
@@ -92,7 +92,7 @@
<!-- Shop Modal -->
<div x-show="store.showShop" x-transition.opacity.duration.200ms
class="absolute inset-0 flex items-center justify-center pointer-events-auto bg-black/60 backdrop-blur-sm"
x-cloak style="display:none">
x-cloak>
<div class="bg-aqua-900/95 border border-aqua-700 rounded-2xl w-[500px] max-h-[80vh] overflow-y-auto p-6 shadow-2xl">
<div class="flex items-center justify-between mb-4">
<h2 class="text-white font-bold text-lg">🐟 Fish Shop</h2>
@@ -124,7 +124,7 @@
<!-- Settings Modal -->
<div x-show="store.showSettings" x-transition.opacity.duration.200ms
class="absolute inset-0 flex items-center justify-center pointer-events-auto bg-black/60 backdrop-blur-sm"
x-cloak style="display:none">
x-cloak>
<div class="bg-aqua-900/95 border border-aqua-700 rounded-2xl w-80 p-6 shadow-2xl">
<div class="flex items-center justify-between mb-4">
<h2 class="text-white font-bold">⚙️ Settings</h2>
@@ -153,7 +153,7 @@
<!-- Reset Confirmation -->
<div x-show="store.showResetConfirm" x-transition.opacity.duration.150ms
class="absolute inset-0 flex items-center justify-center pointer-events-auto bg-black/70 z-50"
x-cloak style="display:none">
x-cloak>
<div class="bg-aqua-900 border border-red-900 rounded-2xl w-80 p-6 shadow-2xl">
<h3 class="text-white font-bold mb-2">⚠️ Reset Game</h3>
<p class="text-sm text-aqua-300 mb-4">This will permanently delete ALL your fish, money, and progress.</p>