STYLED - Roll out the layered card system to the admin workspace
The double-layer AppCard look showcased in the UI Kit was only applied on the public frontend; every admin surface was pinned to layer=single and stayed flat. Convert the admin section/container cards to the default layered look, keeping compact metric tiles, toolbars, image tiles and nested leaf cards single. Add AppCard contentClassName so content utilities (space-y-*, grid, flex) keep applying to the inner shell after the switch to double layer.
This commit is contained in:
@@ -270,7 +270,7 @@ function SiteSettingsMediaRow({
|
||||
|
||||
return (
|
||||
<>
|
||||
<AppCard level={2} layer="single" padding="sm">
|
||||
<AppCard level={2} padding="sm">
|
||||
<div className="grid gap-4 lg:grid-cols-[180px_minmax(0,1fr)]">
|
||||
<div className="space-y-2">
|
||||
<p className="text-sm font-semibold text-foreground">{title}</p>
|
||||
@@ -393,7 +393,7 @@ function LocalizedFieldsSection({
|
||||
|
||||
<div className="grid gap-5 lg:grid-cols-3">
|
||||
{localeFields.map((locale) => (
|
||||
<AppCard key={locale.key} level={2} layer="single" padding="sm" className="space-y-4">
|
||||
<AppCard key={locale.key} level={2} padding="sm" contentClassName="space-y-4">
|
||||
<p className="text-sm font-semibold text-foreground">{locale.label}</p>
|
||||
|
||||
<div className="space-y-2">
|
||||
@@ -558,7 +558,7 @@ export function SiteSettingsForm({
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<AppCard level={2} layer="single" padding="sm" className="space-y-4">
|
||||
<AppCard level={2} padding="sm" contentClassName="space-y-4">
|
||||
<div className="grid gap-4 lg:grid-cols-[minmax(0,1fr)_220px]">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="primaryColor" className="sr-only">Primary Color</Label>
|
||||
@@ -679,7 +679,7 @@ export function SiteSettingsForm({
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<AppCard level={2} layer="single" padding="sm" className="space-y-4">
|
||||
<AppCard level={2} padding="sm" contentClassName="space-y-4">
|
||||
<div className="grid gap-4 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="defaultLocaleTrigger" className="sr-only">Default Locale</Label>
|
||||
@@ -729,7 +729,7 @@ export function SiteSettingsForm({
|
||||
<section className="space-y-4">
|
||||
{mode === "brand" ? (
|
||||
<>
|
||||
<AppCard level={2} layer="single" padding="sm" className="space-y-2">
|
||||
<AppCard level={2} padding="sm" contentClassName="space-y-2">
|
||||
<p className="text-xs uppercase tracking-[0.14em] text-muted-foreground">Search Result</p>
|
||||
<div className="rounded-nested border border-border/70 bg-background p-3">
|
||||
<div className="flex items-center gap-3">
|
||||
@@ -750,7 +750,7 @@ export function SiteSettingsForm({
|
||||
</div>
|
||||
</AppCard>
|
||||
|
||||
<AppCard level={2} layer="single" padding="sm" className="space-y-2">
|
||||
<AppCard level={2} padding="sm" contentClassName="space-y-2">
|
||||
<p className="text-xs uppercase tracking-[0.14em] text-muted-foreground">Brand Assets</p>
|
||||
<div className="grid gap-3 sm:grid-cols-2">
|
||||
<AppCard level={1} layer="single" padding="sm">
|
||||
@@ -773,7 +773,7 @@ export function SiteSettingsForm({
|
||||
</div>
|
||||
</AppCard>
|
||||
|
||||
<AppCard level={2} layer="single" padding="sm" className="space-y-2">
|
||||
<AppCard level={2} padding="sm" contentClassName="space-y-2">
|
||||
<p className="text-xs uppercase tracking-[0.14em] text-muted-foreground">Social Preview</p>
|
||||
<div className="overflow-hidden rounded-nested border border-border/70 bg-background">
|
||||
<div className="h-1.5" style={{ backgroundColor: settings.brand.primaryColor }} />
|
||||
@@ -797,7 +797,7 @@ export function SiteSettingsForm({
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<AppCard level={2} layer="single" padding="sm" className="space-y-2">
|
||||
<AppCard level={2} padding="sm" contentClassName="space-y-2">
|
||||
<p className="text-xs uppercase tracking-[0.14em] text-muted-foreground">Visitor Routing</p>
|
||||
<div className="rounded-nested border border-border/70 bg-background p-3">
|
||||
<div className="flex items-center gap-2 text-sm font-medium text-foreground">
|
||||
@@ -810,7 +810,7 @@ export function SiteSettingsForm({
|
||||
</div>
|
||||
</AppCard>
|
||||
|
||||
<AppCard level={2} layer="single" padding="sm" className="space-y-2">
|
||||
<AppCard level={2} padding="sm" contentClassName="space-y-2">
|
||||
<p className="text-xs uppercase tracking-[0.14em] text-muted-foreground">Locale Summary</p>
|
||||
<div className="rounded-nested border border-border/70 bg-background">
|
||||
<Table>
|
||||
|
||||
Reference in New Issue
Block a user