camera mobile modal attempt #956

This commit is contained in:
lemonknowsall committed 2025-10-27 15:43:49 -07:00
1 parent a5db59fa67
commit 025cd9ed5e
1 file changed
+16 -5
+16 -5
View File
@@ -493,7 +493,7 @@ export function WalletModals({
}
}}>
<DialogContent
className="max-w-none w-screen h-screen !h-[100dvh] p-0 m-0 bg-black border-0 rounded-none !top-0 !left-0 !right-0 !bottom-0 !translate-x-0 !translate-y-0 flex flex-col [&>button]:absolute [&>button]:top-4 [&>button]:right-4 [&>button]:z-50 [&>button]:text-white [&>button]:bg-black/50 [&>button]:hover:bg-black/70"
className="max-w-none w-screen h-[100dvh] p-0 m-0 bg-black border-0 rounded-none !top-0 !left-0 !right-0 !bottom-0 !translate-x-0 !translate-y-0 flex flex-col overflow-hidden [&>button]:absolute [&>button]:top-4 [&>button]:right-4 [&>button]:z-50 [&>button]:text-white [&>button]:bg-black/50 [&>button]:hover:bg-black/70"
style={{
position: 'fixed',
top: 0,
@@ -502,12 +502,23 @@ export function WalletModals({
bottom: 0,
transform: 'none',
maxWidth: '100vw',
maxHeight: '100vh',
height: '100vh',
width: '100vw'
maxHeight: '100dvh',
height: '100dvh',
width: '100vw',
margin: 0,
padding: 0,
inset: 0
}}
>
<div id="qr-reader" style={{ width: '100%', height: '100%', flex: 1 }}></div>
<div id="qr-reader" style={{
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
width: '100%',
height: '100%'
}}></div>
{/* Error message */}
{qrError && (