Browse Source

landing-blocks/src: added height 100% to next container

pull/5/head landing-blocks_1.0.41
remorses 1 year ago
parent
commit
e949a85d14
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      landing-blocks/src/LandingProvider.tsx
  2. +1
    -1
      landing-blocks/src/layout.tsx

+ 5
- 0
landing-blocks/src/LandingProvider.tsx View File

@ -117,6 +117,7 @@ export function LandingProvider({
>
{children}
</Stack>
</Mode>
</PropagatedThemeProvider>
)
@ -131,6 +132,10 @@ const globalStyles = css`
height: 100%;
scroll-behavior: smooth;
}
#__next {
min-height: 100%;
height: 100%;
}
body {
height: 100%;
overflow: auto;

+ 1
- 1
landing-blocks/src/layout.tsx View File

@ -42,7 +42,7 @@ export function PropagatedThemeProvider({ theme, children }) {
const existingTheme = useTheme()
// console.log({ existingTheme: existingTheme.sizes })
const merged = useMemo(() => {
return merge(existingTheme, theme)
return merge(existingTheme || {}, theme)
}, [theme, existingTheme])
return <ThemeProvider theme={merged}>{children}</ThemeProvider>
}

Loading…
Cancel
Save