bettersight-statement-extra.../frontend
JasonFraser 23bba7e760 Teleport every modal to <body>, fixing an unclickable-behind-page bug
Reported from the sidebar's own per-document delete: the confirm modal
appeared behind the main content and couldn't be clicked.

Root cause: .app-sidebar (position:sticky) and .txn-col
(container-type:inline-size, which implies layout containment) each
always create their own CSS stacking context, with or without an
explicit z-index. ConfirmModal/DocumentOptionsModal/DownloadChoiceModal
are rendered as DOM descendants of one or the other depending on which
call site opens them, so their own z-index:50 was trapped inside that
ancestor's local stacking order - no z-index value could escape it,
since z-index only ever competes against siblings within the same
stacking context.

Fixed with <Teleport to="body"> on all three modals - the standard fix
for this bug, not a bigger z-index (which cannot escape a trapped
stacking context regardless of the number). Each modal now always
renders as a direct child of <body>, a sibling of #app rather than a
descendant of whichever component opened it, so this can't recur
regardless of which future component ends up opening one.

Verified: npm run build passes, the bundle references Teleport, the app
container rebuilt. measure.py unaffected. Not machine-verified -
Claude-in-Chrome did not connect this session.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-13 13:36:32 -04:00
..
.vscode Restructure frontend to Vue 3 + Vite (Stage 2 of 2) 2026-10-12 06:32:49 -04:00
public Restructure frontend to Vue 3 + Vite (Stage 2 of 2) 2026-10-12 06:32:49 -04:00
src Teleport every modal to <body>, fixing an unclickable-behind-page bug 2026-10-13 13:36:32 -04:00
.gitignore Restructure frontend to Vue 3 + Vite (Stage 2 of 2) 2026-10-12 06:32:49 -04:00
README.md Restructure frontend to Vue 3 + Vite (Stage 2 of 2) 2026-10-12 06:32:49 -04:00
index.html Restructure frontend to Vue 3 + Vite (Stage 2 of 2) 2026-10-12 06:32:49 -04:00
package-lock.json Replace the native PDF iframe with a pdf.js viewer for row highlighting 2026-10-13 11:26:48 -04:00
package.json Replace the native PDF iframe with a pdf.js viewer for row highlighting 2026-10-13 11:26:48 -04:00
vite.config.js Restructure frontend to Vue 3 + Vite (Stage 2 of 2) 2026-10-12 06:32:49 -04:00

README.md

Vue 3 + Vite

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.