button consistency

This commit is contained in:
Josh Hawkins
2026-08-26 16:33:32 -05:00
parent 15f2ba9f6c
commit 6904de9332
6 changed files with 36 additions and 50 deletions
+1 -3
View File
@@ -18,11 +18,9 @@
"account": { "account": {
"title": "Secure your account", "title": "Secure your account",
"descriptionSignedIn": "You're signed in as {{username}} using the temporary password from the Frigate logs. Set one you'll remember.", "descriptionSignedIn": "You're signed in as {{username}} using the temporary password from the Frigate logs. Set one you'll remember.",
"descriptionAnonymous": "This port doesn't require a login. Set a password for the admin account so you can sign in on the secured port.", "descriptionAnonymous": "You're accessing Frigate on a port that doesn't require a login. Set a password for the admin account so you can sign in on the secured port.",
"passwordSet": "Password set", "passwordSet": "Password set",
"changePassword": "Change password", "changePassword": "Change password",
"usersTitle": "Other users",
"usersDescription": "Add accounts for anyone else who needs access. Roles can be changed later in Settings.",
"addUser": "Add user", "addUser": "Add user",
"usersFailed": "Could not load the user list. You can still set the admin password.", "usersFailed": "Could not load the user list. You can still set the admin password.",
"userFailed": "Failed to add the user. Please try again." "userFailed": "Failed to add the user. Please try again."
+16 -24
View File
@@ -107,7 +107,8 @@ export default function SetupAccount({
</p> </p>
</div> </div>
<div className="flex items-center justify-between rounded-md border p-4"> <div className="flex flex-col gap-2">
<div className="flex items-center justify-between rounded-md border p-3">
<div className="flex flex-col gap-1"> <div className="flex flex-col gap-1">
<span className="text-sm font-medium">{adminUsername}</span> <span className="text-sm font-medium">{adminUsername}</span>
{passwordSet && ( {passwordSet && (
@@ -119,21 +120,22 @@ export default function SetupAccount({
</div> </div>
<Button <Button
type="button" type="button"
variant="select" variant="outline"
onClick={() => setShowPassword(true)} onClick={() => setShowPassword(true)}
> >
{t("setupWizard.account.changePassword")} {t("setupWizard.account.changePassword")}
</Button> </Button>
</div> </div>
<div className="flex flex-col gap-2"> {otherUsers.map((user) => (
<div> <div
<h3 className="text-sm font-medium"> key={user.username}
{t("setupWizard.account.usersTitle")} className="flex items-center justify-between rounded-md border p-3"
</h3> >
<p className="text-xs text-muted-foreground"> <span className="text-sm font-medium">{user.username}</span>
{t("setupWizard.account.usersDescription")} <span className="text-xs text-muted-foreground">{user.role}</span>
</p> </div>
))}
</div> </div>
{isLoading && <ActivityIndicator />} {isLoading && <ActivityIndicator />}
@@ -144,20 +146,10 @@ export default function SetupAccount({
</p> </p>
)} )}
{otherUsers.map((user) => ( <div className="flex flex-col items-center gap-3 py-4">
<div
key={user.username}
className="flex items-center justify-between rounded-md border p-3"
>
<span className="text-sm">{user.username}</span>
<span className="text-xs text-muted-foreground">{user.role}</span>
</div>
))}
<Button <Button
type="button" variant="select"
variant="outline" className="w-full"
className="self-start"
onClick={() => setShowCreate(true)} onClick={() => setShowCreate(true)}
> >
{t("setupWizard.account.addUser")} {t("setupWizard.account.addUser")}
@@ -169,7 +161,7 @@ export default function SetupAccount({
{t("setupWizard.actions.back")} {t("setupWizard.actions.back")}
</Button> </Button>
<div className="flex flex-1 justify-end gap-3"> <div className="flex flex-1 justify-end gap-3">
<Button type="button" variant="outline" onClick={onSkip}> <Button type="button" onClick={onSkip}>
{t("setupWizard.actions.skip")} {t("setupWizard.actions.skip")}
</Button> </Button>
<Button type="button" variant="select" onClick={onNext}> <Button type="button" variant="select" onClick={onNext}>
+1 -5
View File
@@ -251,11 +251,7 @@ export default function SetupDetector({
{t("setupWizard.actions.back")} {t("setupWizard.actions.back")}
</Button> </Button>
<div className="flex flex-1 justify-end gap-3"> <div className="flex flex-1 justify-end gap-3">
<Button <Button type="button" onClick={() => onSkip(selected.key)}>
type="button"
variant="outline"
onClick={() => onSkip(selected.key)}
>
{t("setupWizard.actions.skip")} {t("setupWizard.actions.skip")}
</Button> </Button>
<Button <Button
+1 -1
View File
@@ -238,7 +238,7 @@ export default function SetupHwAccel({
{t("setupWizard.actions.back")} {t("setupWizard.actions.back")}
</Button> </Button>
<div className="flex flex-1 justify-end gap-3"> <div className="flex flex-1 justify-end gap-3">
<Button type="button" variant="outline" onClick={onSkip}> <Button type="button" onClick={onSkip}>
{t("setupWizard.actions.skip")} {t("setupWizard.actions.skip")}
</Button> </Button>
<Button <Button
+1 -1
View File
@@ -169,7 +169,7 @@ export default function SetupRecording({
{t("setupWizard.actions.back")} {t("setupWizard.actions.back")}
</Button> </Button>
<div className="flex flex-1 justify-end gap-3"> <div className="flex flex-1 justify-end gap-3">
<Button type="button" variant="outline" onClick={onSkip}> <Button type="button" onClick={onSkip}>
{t("setupWizard.actions.skip")} {t("setupWizard.actions.skip")}
</Button> </Button>
<Button <Button
+1 -1
View File
@@ -266,7 +266,7 @@ export default function SetupWizard() {
{isDark ? <LuSun className="size-4" /> : <LuMoon className="size-4" />} {isDark ? <LuSun className="size-4" /> : <LuMoon className="size-4" />}
</Button> </Button>
<Card className="w-full max-w-lg"> <Card className="w-full max-w-lg bg-background_alt">
<CardContent className="p-6"> <CardContent className="p-6">
<StepIndicator <StepIndicator
steps={stepLabels} steps={stepLabels}