Pin phone sheets to the visible viewport, and let people correct login and organizer errors.
This commit is contained in:
1 parent
27d74e510c
commit
39807ef452
17 files changed
+236
-16
No files matched your search
@@ -24,13 +24,19 @@ export function LoginView({
|
||||
usePortal,
|
||||
backdropVariant,
|
||||
viewportHeight,
|
||||
viewportOffsetTop,
|
||||
}: LoginViewProps) {
|
||||
if (!isOpen) return null;
|
||||
if (usePortal && !portalReady) return null;
|
||||
|
||||
const phoneSheetStyle =
|
||||
viewportHeight != null
|
||||
? { height: viewportHeight, maxHeight: viewportHeight }
|
||||
? {
|
||||
top: viewportOffsetTop ?? 0,
|
||||
bottom: "auto" as const,
|
||||
height: viewportHeight,
|
||||
maxHeight: viewportHeight,
|
||||
}
|
||||
: undefined;
|
||||
|
||||
const belowCardLink = belowCard ? (
|
||||
|
||||
Reference in new issue
Block a user