Skip to content

Commit 97f02bb

Browse files
committed
Update formatting of avatar and image fields
1 parent 1522850 commit 97f02bb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ui/components/AvatarImageField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { useMemo, useState } from "react";
12
import { FileTrigger, type FileTriggerProps, InputContext } from "react-aria-components";
23
import { Avatar } from "./Avatar";
34
import { Button } from "./Button";
4-
import { useMemo, useState } from "react";
55

66
type AvatarImageFieldProps = {
77
name: string;
@@ -30,7 +30,7 @@ export function AvatarImageField({
3030
<div className="flex flex-col gap-3">
3131
{label && <label>{label}</label>}
3232
<InputContext.Provider value={inputContext}>
33-
<div className="flex flex-row gap-4 items-center">
33+
<div className="flex flex-row items-center gap-4">
3434
<FileTrigger
3535
{...props}
3636
acceptedFileTypes={acceptedFileTypes}

ui/components/ImageField.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { useMemo, useState } from "react";
12
import { FileTrigger, type FileTriggerProps, InputContext } from "react-aria-components";
23
import { Button } from "./Button";
3-
import { useMemo, useState } from "react";
44

55
type ImageFieldProps = {
66
name: string;
@@ -29,7 +29,7 @@ export function ImageField({
2929
<div className="flex flex-col gap-3">
3030
{label && <label>{label}</label>}
3131
<InputContext.Provider value={inputContext}>
32-
<div className="flex flex-row gap-4 items-center">
32+
<div className="flex flex-row items-center gap-4">
3333
<FileTrigger
3434
{...props}
3535
acceptedFileTypes={acceptedFileTypes}
@@ -42,7 +42,7 @@ export function ImageField({
4242
}
4343
}}
4444
>
45-
<Button variant="icon" className="rounded-md w-fit h-fit p-1">
45+
<Button variant="icon" className="h-fit w-fit rounded-md p-1">
4646
<img src={previewUrl ?? imageUrl} alt={name} height={height} width={width} />
4747
</Button>
4848
</FileTrigger>

0 commit comments

Comments
 (0)