Browse Source

Fix router page overflow on mobile

pull/501/head
Jip Fr 2 years ago
parent
commit
fa2fac351e
  1. 2
      src/components/overlays/OverlayPage.tsx
  2. 4
      src/components/overlays/OverlayRouter.tsx

2
src/components/overlays/OverlayPage.tsx

@ -47,7 +47,7 @@ export function OverlayPage(props: Props) {
show={show} show={show}
> >
<div <div
className={classNames([props.className, ""])} className={classNames(["grid grid-rows-1 max-h-full", props.className])}
style={{ style={{
height: props.height ? `${props.height}px` : undefined, height: props.height ? `${props.height}px` : undefined,
width: props.width ? width : undefined, width: props.width ? width : undefined,

4
src/components/overlays/OverlayRouter.tsx

@ -75,7 +75,7 @@ function RouterBase(props: { id: string; children: ReactNode }) {
<a.div <a.div
ref={ref} ref={ref}
style={dimensions} style={dimensions}
className="overflow-hidden relative z-10" className="overflow-hidden relative z-10 max-h-full"
> >
<Flare.Base className="group w-full bg-video-context-border h-full rounded-2xl transition-colors duration-100 text-video-context-type-main"> <Flare.Base className="group w-full bg-video-context-border h-full rounded-2xl transition-colors duration-100 text-video-context-type-main">
<Flare.Light <Flare.Light
@ -84,7 +84,7 @@ function RouterBase(props: { id: string; children: ReactNode }) {
backgroundClass="bg-video-context-background duration-100" backgroundClass="bg-video-context-background duration-100"
className="rounded-2xl opacity-100" className="rounded-2xl opacity-100"
/> />
<Flare.Child className="pointer-events-auto relative transition-transform duration-100"> <Flare.Child className="pointer-events-auto relative transition-transform duration-100 h-full">
{props.children} {props.children}
</Flare.Child> </Flare.Child>
</Flare.Base> </Flare.Base>

Loading…
Cancel
Save