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:
parent
cb3fea5303
commit
255b52eb6d
@ -54,7 +54,8 @@
|
||||
</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">
|
||||
<button
|
||||
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
|
||||
</button>
|
||||
</div>
|
||||
</Teleport>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user