fix: teleport mobile close button to body to escape CSS transform

The mobile close button uses position: fixed, which breaks inside
a CSS transform containing block. Wrapping in <Teleport to="body">
ensures correct fixed positioning relative to the viewport.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian 2026-03-05 08:56:23 +00:00
parent cb3fea5303
commit 255b52eb6d

View File

@ -54,7 +54,8 @@
</div> </div>
</div> </div>
<!-- Mobile close bar: sits above the tab bar, below the AIUI content --> <!-- Mobile close bar (teleported to escape CSS transform containing block) -->
<Teleport to="body">
<div class="md:hidden mobile-back-btn flex items-center justify-center"> <div class="md:hidden mobile-back-btn flex items-center justify-center">
<button <button
class="w-full glass-button px-6 py-2.5 rounded-lg font-medium flex items-center justify-center gap-2 text-sm" class="w-full glass-button px-6 py-2.5 rounded-lg font-medium flex items-center justify-center gap-2 text-sm"
@ -67,6 +68,7 @@
Close Chat Close Chat
</button> </button>
</div> </div>
</Teleport>
</div> </div>
</template> </template>