fix: replace visibility:hidden with smooth collapse for zero-tx warning
All checks were successful
check / check (push) Successful in 10s

Instead of permanently reserving space with visibility:hidden, the warning
container now uses max-height + opacity transitions. Space is reserved during
the async check, then smoothly collapses to 0 if the warning isn't needed.
This reclaims ~40px of popup viewport in the common case.
This commit is contained in:
user
2026-02-28 15:37:27 -08:00
parent 8c071ae508
commit 576fe3ab15
2 changed files with 24 additions and 9 deletions

View File

@@ -580,7 +580,14 @@
<div
id="confirm-recipient-warning"
class="mb-2"
style="visibility: hidden"
style="
overflow: hidden;
transition:
max-height 0.3s ease,
opacity 0.3s ease;
max-height: 60px;
opacity: 0;
"
>
<div
class="border border-red-500 border-dashed p-2 text-xs font-bold text-red-500"