migrate settings

This commit is contained in:
tresabhi committed 2026-11-22 13:58:17 -06:00
1 parent 8dd412ed32
commit 1b50f0bcdd
25 files changed
+335 -237

No files matched your search

@@ -11,7 +11,7 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
z-index: 1;
display: flex;
flex-direction: column;
@@ -49,7 +49,7 @@
}
.body {
--scroller-curtain-color: var(--gray-2);
flex: 1;
display: flex;
flex-direction: column;
gap: var(--space-4);
}
@@ -2,7 +2,6 @@ import { Dialog as _ } from "radix-ui";
import type { ComponentProps } from "react";
import { classNames } from "../../ui/classNames";
import { composeRadixComponents } from "../../ui/compose";
import { Scroller, ScrollerOrientation } from "../Scroller";
import styles from "./index.module.css";
// Groups a title and description
@@ -10,15 +9,9 @@ function Header({ className, ...props }: ComponentProps<"div">) {
return <div className={classNames(styles.header, className)} {...props} />;
}
// Scrolls the content that follows the header
function Body({ className, ...props }: ComponentProps<typeof Scroller>) {
return (
<Scroller
orientation={ScrollerOrientation.Vertical}
className={classNames(styles.body, className)}
{...props}
/>
);
// Stacks the content that follows the header
function Body({ className, ...props }: ComponentProps<"div">) {
return <div className={classNames(styles.body, className)} {...props} />;
}
export const Dialog = { ...composeRadixComponents(_, styles), Header, Body };