Add debug to Composer

This commit is contained in:
Eric Bailey
2025-08-12 21:43:50 -05:00
parent d347717086
commit 4b720a3b86
3 changed files with 33 additions and 16 deletions
+8 -2
View File
@@ -37,7 +37,13 @@ export {Outlet} from '#/components/Toast/Portal'
const TOAST_ANIMATION_DURATION = 300
export function ToastProvider({children}: {children: React.ReactNode}) {
export function ToastProvider({
children,
offsetTop,
}: {
children: React.ReactNode
offsetTop?: number
}) {
const {top} = useSafeAreaInsets()
const [toasts, setToasts] = useState<
{
@@ -96,7 +102,7 @@ export function ToastProvider({children}: {children: React.ReactNode}) {
a.gap_sm,
{
flexDirection: 'column-reverse',
top: top,
top: offsetTop ?? top,
left: a.px_lg.paddingLeft,
right: a.px_lg.paddingLeft,
},