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

4
src/components/overlays/OverlayRouter.tsx

@ -75,7 +75,7 @@ function RouterBase(props: { id: string; children: ReactNode }) { @@ -75,7 +75,7 @@ function RouterBase(props: { id: string; children: ReactNode }) {
<a.div
ref={ref}
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.Light
@ -84,7 +84,7 @@ function RouterBase(props: { id: string; children: ReactNode }) { @@ -84,7 +84,7 @@ function RouterBase(props: { id: string; children: ReactNode }) {
backgroundClass="bg-video-context-background duration-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}
</Flare.Child>
</Flare.Base>

Loading…
Cancel
Save