diff --git a/apps/web/src/components/settings/FoldedSettingsSection.tsx b/apps/web/src/components/settings/FoldedSettingsSection.tsx index 109e97b9d8e8ce2837879d9dd14500ed9d9a180f..d12af62092352557a760487abe480baef109aeaf 100644 --- a/apps/web/src/components/settings/FoldedSettingsSection.tsx +++ b/apps/web/src/components/settings/FoldedSettingsSection.tsx @@ -1,3 +1,4 @@ +import { SettingsGroup } from "./SettingsGroup"; import { ChevronRightIcon } from "lucide-react"; import { type ReactNode, useState } from "react"; @@ -35,11 +36,7 @@ export function FoldedSettingsSection({ return (
- + }>
{deviceTabs}
) : null} -
{icon} @@ -214,7 +211,7 @@ function ProviderSettingsPlaceholder({ {children ? {children} : null} -
+ ); } @@ -1044,16 +1041,16 @@ export function EnvironmentProviderSettings({ {readOnly ? ( -
+ -
+ ) : null} -
)}
- + & { + variant?: "grouped" | "plain"; + divided?: boolean; +}) { + return ( +
*+*]:border-t [&>*+*]:border-border/50 [&>[data-slot=settings-row]]:rounded-none", + className, + )} + /> + ); +} diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx index 4fb847df684b6630778f87f1158f798579c6d27f..85e1de588f942ea887b301cbff2d391fc3168b14 100644 --- a/apps/web/src/components/settings/SettingsPanels.tsx +++ b/apps/web/src/components/settings/SettingsPanels.tsx @@ -1,3 +1,4 @@ +import { SettingsGroup } from "./SettingsGroup"; import { Spinner } from "~/components/ui/spinner"; import { NotificationSettings } from "./NotificationSettings"; import { ArchiveIcon, ArchiveX, CheckIcon, ChevronRightIcon, SettingsIcon } from "lucide-react"; @@ -2047,7 +2048,7 @@ function LegacyFeaturesSection() { -
+ } /> -
+
diff --git a/apps/web/src/components/settings/settingsLayout.tsx b/apps/web/src/components/settings/settingsLayout.tsx index ed2fb21255f1d6028dc85788e10b8081aba248bf..94938b637db77e47358641b1b71595b7145cbaaa 100644 --- a/apps/web/src/components/settings/settingsLayout.tsx +++ b/apps/web/src/components/settings/settingsLayout.tsx @@ -1,3 +1,4 @@ +import { SettingsGroup } from "./SettingsGroup"; import { InfoIcon, Undo2Icon } from "lucide-react"; import { DEFAULT_SERVER_SETTINGS, type ServerSettings } from "@t3tools/contracts"; import * as Equal from "effect/Equal"; @@ -215,17 +216,9 @@ export function SettingsSection({
{headerAction}
)} -
*+*]:border-t [&>*+*]:border-border/50 [&>[data-slot=settings-row]]:rounded-none" - : "space-y-1", - )} - > + {children} -
+ ); }