mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
migrated embed
This commit is contained in:
98 files changed
+1979
-1376
No files matched your search
@@ -15,11 +15,13 @@
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
|
||||
box-sizing: border-box;
|
||||
width: calc(100dvw - 2 * var(--space-4));
|
||||
max-width: 40rem;
|
||||
max-height: calc(100dvh - 2 * var(--space-4));
|
||||
padding: var(--space-4);
|
||||
overflow: hidden;
|
||||
|
||||
background-color: var(--gray-2);
|
||||
@@ -45,17 +47,10 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
|
||||
padding: var(--space-4);
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.body {
|
||||
--scroller-curtain-color: var(--gray-2);
|
||||
|
||||
flex: 1;
|
||||
|
||||
.content {
|
||||
padding: var(--space-4);
|
||||
}
|
||||
}
|
||||
@@ -11,19 +11,13 @@ function Header({ className, ...props }: ComponentProps<"div">) {
|
||||
}
|
||||
|
||||
// Scrolls the content that follows the header
|
||||
function Body({
|
||||
className,
|
||||
children,
|
||||
...props
|
||||
}: ComponentProps<typeof Scroller>) {
|
||||
function Body({ className, ...props }: ComponentProps<typeof Scroller>) {
|
||||
return (
|
||||
<Scroller
|
||||
orientation={ScrollerOrientation.Vertical}
|
||||
className={classNames(styles.body, className)}
|
||||
{...props}
|
||||
>
|
||||
<div className={styles.content}>{children}</div>
|
||||
</Scroller>
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user