Skip to content

Commit d4c52ef

Browse files
committed
fix(dashboard): align HWID switches inline with setting cards
1 parent b84c347 commit d4c52ef

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

dashboard/src/pages/_dashboard.settings.hwid.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default function HwidSettings() {
101101
if (error) {
102102
return (
103103
<div className="flex min-h-[400px] items-center justify-center p-4 sm:py-6 lg:py-8">
104-
<p className="text-sm text-destructive">{t('settings.hwid.loadError', { defaultValue: 'Failed to load HWID settings' })}</p>
104+
<p className="text-destructive text-sm">{t('settings.hwid.loadError', { defaultValue: 'Failed to load HWID settings' })}</p>
105105
</div>
106106
)
107107
}
@@ -112,10 +112,8 @@ export default function HwidSettings() {
112112
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6 p-4 sm:py-6 lg:py-8">
113113
<section className="space-y-4">
114114
<div className="space-y-1.5">
115-
<h3 className="text-base font-semibold sm:text-lg">
116-
{t('settings.hwid.policy.title', { defaultValue: 'Device registration policy' })}
117-
</h3>
118-
<p className="max-w-3xl text-xs leading-relaxed text-muted-foreground sm:text-sm">
115+
<h3 className="text-base font-semibold sm:text-lg">{t('settings.hwid.policy.title', { defaultValue: 'Device registration policy' })}</h3>
116+
<p className="text-muted-foreground max-w-3xl text-xs leading-relaxed sm:text-sm">
119117
{t('settings.hwid.policy.description', { defaultValue: 'Control subscription access by registered hardware IDs.' })}
120118
</p>
121119
</div>
@@ -125,7 +123,7 @@ export default function HwidSettings() {
125123
control={form.control}
126124
name="enabled"
127125
render={({ field }) => (
128-
<FormItem className="flex-row items-center justify-between gap-4 rounded-md border bg-card p-3 transition-colors hover:bg-accent/50 sm:p-4">
126+
<FormItem className="bg-card hover:bg-accent/50 flex flex-row items-center justify-between gap-4 space-y-0 rounded-md border p-3 transition-colors sm:p-4">
129127
<div className="min-w-0 flex-1 space-y-1">
130128
<FormLabel className="cursor-pointer text-sm font-medium">{t('settings.hwid.enabled.title', { defaultValue: 'Enable HWID checks' })}</FormLabel>
131129
<FormDescription className="text-xs leading-relaxed sm:text-sm">
@@ -143,7 +141,7 @@ export default function HwidSettings() {
143141
control={form.control}
144142
name="forced"
145143
render={({ field }) => (
146-
<FormItem className="flex-row items-center justify-between gap-4 rounded-md border bg-card p-3 transition-colors hover:bg-accent/50 sm:p-4">
144+
<FormItem className="bg-card hover:bg-accent/50 flex flex-row items-center justify-between gap-4 space-y-0 rounded-md border p-3 transition-colors sm:p-4">
147145
<div className="min-w-0 flex-1 space-y-1">
148146
<FormLabel className="cursor-pointer text-sm font-medium">{t('settings.hwid.forced.title', { defaultValue: 'Require HWID header' })}</FormLabel>
149147
<FormDescription className="text-xs leading-relaxed sm:text-sm">
@@ -162,7 +160,7 @@ export default function HwidSettings() {
162160
<section className="space-y-4">
163161
<div className="space-y-1.5">
164162
<h3 className="text-base font-semibold sm:text-lg">{t('settings.hwid.limits.title', { defaultValue: 'Device limits' })}</h3>
165-
<p className="max-w-3xl text-xs leading-relaxed text-muted-foreground sm:text-sm">
163+
<p className="text-muted-foreground max-w-3xl text-xs leading-relaxed sm:text-sm">
166164
{t('settings.hwid.limits.description', { defaultValue: 'Set the default device count and optional bounds for per-user HWID limits.' })}
167165
</p>
168166
</div>

0 commit comments

Comments
 (0)