mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-06 07:44:27 +01:00
h-screen-safe is a lie
This commit is contained in:
@@ -131,7 +131,7 @@ export function AmountEditable(props: { initialAmountSats: string, setAmountSats
|
|||||||
}
|
}
|
||||||
|
|
||||||
const DIALOG_POSITIONER = "fixed inset-0 safe-top safe-bottom z-50"
|
const DIALOG_POSITIONER = "fixed inset-0 safe-top safe-bottom z-50"
|
||||||
const DIALOG_CONTENT = "h-screen-safe flex flex-col justify-between p-4 backdrop-blur-md bg-neutral-800/70"
|
const DIALOG_CONTENT = "h-full safe-bottom flex flex-col justify-between p-4 backdrop-blur-md bg-neutral-800/70"
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog.Root isOpen={isOpen()}>
|
<Dialog.Root isOpen={isOpen()}>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { useCopy } from "~/utils/useCopy";
|
|||||||
|
|
||||||
const OVERLAY = "fixed inset-0 z-50 bg-black/50 backdrop-blur-sm"
|
const OVERLAY = "fixed inset-0 z-50 bg-black/50 backdrop-blur-sm"
|
||||||
const DIALOG_POSITIONER = "fixed inset-0 z-50 flex items-center justify-center"
|
const DIALOG_POSITIONER = "fixed inset-0 z-50 flex items-center justify-center"
|
||||||
const DIALOG_CONTENT = "max-w-[600px] max-h-screen-safe p-4 bg-gray/50 backdrop-blur-md shadow-xl rounded-xl border border-white/10"
|
const DIALOG_CONTENT = "max-w-[600px] max-h-full p-4 bg-gray/50 backdrop-blur-md shadow-xl rounded-xl border border-white/10"
|
||||||
|
|
||||||
export function JsonModal(props: { title: string, open: boolean, data?: unknown, setOpen: (open: boolean) => void, children?: JSX.Element }) {
|
export function JsonModal(props: { title: string, open: boolean, data?: unknown, setOpen: (open: boolean) => void, children?: JSX.Element }) {
|
||||||
const json = createMemo(() => JSON.stringify(props.data, null, 2));
|
const json = createMemo(() => JSON.stringify(props.data, null, 2));
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { Button, LargeHeader, SmallHeader } from "~/components/layout";
|
|||||||
import close from "~/assets/icons/close.svg";
|
import close from "~/assets/icons/close.svg";
|
||||||
|
|
||||||
const DIALOG_POSITIONER = "fixed inset-0 safe-top safe-bottom z-50"
|
const DIALOG_POSITIONER = "fixed inset-0 safe-top safe-bottom z-50"
|
||||||
const DIALOG_CONTENT = "h-screen-safe p-4 bg-gray/50 backdrop-blur-md bg-black/80"
|
const DIALOG_CONTENT = "h-full p-4 bg-gray/50 backdrop-blur-md bg-black/80"
|
||||||
|
|
||||||
type FullscreenModalProps = {
|
type FullscreenModalProps = {
|
||||||
title: string,
|
title: string,
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export default function Scanner() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="safe-top safe-left safe-right safe-bottom h-screen-safe">
|
<div class="safe-top safe-left safe-right safe-bottom h-full">
|
||||||
<Reader onResult={onResult} />
|
<Reader onResult={onResult} />
|
||||||
<div class="w-full flex flex-col items-center fixed bottom-[2rem] gap-8 px-8">
|
<div class="w-full flex flex-col items-center fixed bottom-[2rem] gap-8 px-8">
|
||||||
<div class="w-full max-w-[800px] flex flex-col gap-2">
|
<div class="w-full max-w-[800px] flex flex-col gap-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user