mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-26 03:59:53 +01:00
fix: some sizing
This commit is contained in:
1 parent
e3c1306ef3
commit
559f3edd06
2 files changed
+8
-3
No files matched your search
@@ -5,11 +5,15 @@ interface BlitzKitThemeProps extends ThemeProps {
|
|||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BlitzKitTheme({ children, ...props }: BlitzKitThemeProps) {
|
export function BlitzKitTheme({
|
||||||
|
children,
|
||||||
|
style,
|
||||||
|
...props
|
||||||
|
}: BlitzKitThemeProps) {
|
||||||
return (
|
return (
|
||||||
<Theme
|
<Theme
|
||||||
grayColor="mauve"
|
grayColor="mauve"
|
||||||
style={{ minHeight: 'unset' }}
|
style={{ minHeight: 'unset', ...style }}
|
||||||
appearance="dark"
|
appearance="dark"
|
||||||
panelBackground="solid"
|
panelBackground="solid"
|
||||||
radius="full"
|
radius="full"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Flex, type FlexProps, Theme } from '@radix-ui/themes';
|
import { Flex, type FlexProps, Theme } from '@radix-ui/themes';
|
||||||
import type { ComponentProps } from 'react';
|
import type { ComponentProps } from 'react';
|
||||||
|
import { NAVBAR_HEIGHT } from '../constants/navbar';
|
||||||
import type { RadixSize } from '../stores/embedState';
|
import type { RadixSize } from '../stores/embedState';
|
||||||
import { BlitzKitTheme } from './BlitzKitTheme';
|
import { BlitzKitTheme } from './BlitzKitTheme';
|
||||||
|
|
||||||
@@ -29,8 +30,8 @@ export function PageWrapper({
|
|||||||
style={{
|
style={{
|
||||||
flex: noFlex1 ? undefined : 1,
|
flex: noFlex1 ? undefined : 1,
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
minHeight: `calc(100dvh - ${NAVBAR_HEIGHT}px)`,
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
minHeight: 'unset',
|
|
||||||
...containerProps?.style,
|
...containerProps?.style,
|
||||||
}}
|
}}
|
||||||
{...containerProps}
|
{...containerProps}
|
||||||
|
|||||||
Reference in new issue
Block a user