Skip to content

Commit 1db9aa0

Browse files
committed
fix: update design for mobile
1 parent e175f87 commit 1db9aa0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

components/forms/user-role-form.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,15 @@ export function UserRoleForm({ user }: UserNameFormProps) {
117117
)}
118118
/>
119119
</CardContent>
120-
<CardFooter className="flex justify-between border-t bg-accent py-2">
121-
<p className="text-sm font-medium text-muted-foreground">
120+
<CardFooter className="flex justify-between gap-x-4 border-t bg-accent py-2">
121+
<p className="text-balance text-sm font-medium text-muted-foreground">
122122
Remove this card on real production.
123123
</p>
124124
<Button
125125
type="submit"
126-
variant={updated ? "default" : "disable"}
126+
className="shrink-0"
127127
disabled={isPending || !updated}
128+
variant={updated ? "default" : "disable"}
128129
>
129130
{isPending && (
130131
<Icons.spinner className="mr-2 size-4 animate-spin" />

components/ui/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
1111
<input
1212
type={type}
1313
className={cn(
14-
"flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
14+
"flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base md:text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1515
className
1616
)}
1717
ref={ref}

0 commit comments

Comments
 (0)