mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 09:48:44 +00:00
ui fixes
This commit is contained in:
1 parent
0060555489
commit
76a0e1a98d
3 files changed
+11
-3
No files matched your search
@@ -107,8 +107,15 @@ export const DialogAddVideo = ({
|
||||
/>
|
||||
|
||||
<div className="flex w-full justify-center gap-4">
|
||||
<Button onClick={handleClose} variant="secondary">
|
||||
Cancel
|
||||
<Button
|
||||
onClick={handleClose}
|
||||
variant="secondary"
|
||||
disabled={
|
||||
dialogStatus === DialogAddMediaStatuses.FILE_UPLOADING ||
|
||||
dialogStatus === DialogAddMediaStatuses.FILE_RECORD_REQUESTING
|
||||
}
|
||||
>
|
||||
Close
|
||||
</Button>
|
||||
{dialogStatus === DialogAddMediaStatuses.STAGING_FILE && (
|
||||
<ButtonSubmitAdd
|
||||
|
||||
@@ -25,7 +25,7 @@ export const DragAndDropZone = ({ file, fileTypes }: Props) => {
|
||||
// const fileName = file && getFileName(file).toUpperCase();
|
||||
const wrapperClassName = twMerge(
|
||||
"group cursor-pointer p-3 bg-gray-100",
|
||||
!file && "aspect-video flex flex-col items-center justify-center gap-6",
|
||||
!file && "flex flex-col items-center justify-center gap-6",
|
||||
file && "flex items-center gap-3.5",
|
||||
// "rounded-lg border-2 border-dashed border-ui-border",
|
||||
);
|
||||
|
||||
@@ -2,6 +2,7 @@ export enum IMAGE_FILE_TYPE {
|
||||
PNG = "png",
|
||||
JPG = "jpg",
|
||||
JPEG = "jpeg",
|
||||
WEBP = "webp",
|
||||
}
|
||||
|
||||
export enum VIDEO_FILE_TYPE {
|
||||
|
||||
Reference in new issue
Block a user