refactor: standardize card styles and improve layout across dashboard components

This commit is contained in:
mlogclub
2026-06-21 10:09:52 +08:00
parent ff2e2e3962
commit fe5041191f
20 changed files with 91 additions and 74 deletions
@@ -56,7 +56,7 @@ export function InitialPasswordDialog({
{t("user.initialPasswordDescription", { username: username || "-" })}
</DialogDescription>
</DialogHeader>
<div className="rounded-xl border bg-muted/40 p-4">
<div className="rounded-md border bg-muted/35 p-4">
<div className="text-xs text-muted-foreground">{t("user.initialPassword")}</div>
<div className="mt-2 break-all font-mono text-base">{password}</div>
</div>
@@ -86,7 +86,7 @@ export function ResetPasswordDialogs({
{t("user.resetSuccessDescription", { username: item?.username || "-" })}
</DialogDescription>
</DialogHeader>
<div className="rounded-xl border bg-muted/40 p-4">
<div className="rounded-md border bg-muted/35 p-4">
<div className="text-xs text-muted-foreground">{t("user.newPassword")}</div>
<div className="mt-2 break-all font-mono text-base">{password}</div>
</div>
+1 -1
View File
@@ -352,7 +352,7 @@ export default function DashboardUsersPage() {
<TableRow key={item.id}>
<TableCell>
<div className="flex items-center gap-3">
<div className="flex size-10 items-center justify-center rounded-2xl bg-muted text-muted-foreground">
<div className="flex size-10 items-center justify-center rounded-md bg-muted text-muted-foreground">
<UserRoundIcon className="size-4" />
</div>
<div>