styles: adjust form button height

This commit is contained in:
oiov
2025-05-27 16:59:09 +08:00
parent 3e801fe85a
commit 5396a4e628
9 changed files with 2563 additions and 6 deletions
-1
View File
@@ -1,4 +1,3 @@
import { env } from "@/env.mjs";
import { generateApiKey } from "@/lib/dto/api-key";
import { checkUserStatus } from "@/lib/dto/user";
import { getCurrentUser } from "@/lib/session";
+2 -1
View File
@@ -82,13 +82,14 @@ export function UserApiKeyForm({ user }: UserNameFormProps) {
<Button
type="submit"
variant={"blue"}
size={"sm"}
disabled={isPending}
className="shrink-0 px-4"
>
{isPending ? (
<Icons.spinner className="size-4 animate-spin" />
) : (
<p>Generate</p>
"Generate"
)}
</Button>
</div>
+1 -1
View File
@@ -77,7 +77,7 @@ export function UserNameForm({ user }: UserNameFormProps) {
type="submit"
variant={updated ? "blue" : "disable"}
disabled={isPending || !updated}
className="w-[67px] shrink-0 px-0 sm:w-[130px]"
className="h-9 w-[67px] shrink-0 px-0 sm:w-[130px]"
>
{isPending ? (
<Icons.spinner className="size-4 animate-spin" />
+1 -1
View File
@@ -110,7 +110,7 @@ export function UserRoleForm({ user }: UserNameFormProps) {
type="submit"
variant={updated ? "blue" : "disable"}
disabled={isPending || !updated}
className="w-[67px] shrink-0 px-0 sm:w-[130px]"
className="h-9 w-[67px] shrink-0 px-0 sm:w-[130px]"
>
{isPending ? (
<Icons.spinner className="size-4 animate-spin" />
+101 -1
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long