prettier tailwind class sorting
This commit is contained in:
@@ -209,14 +209,14 @@ async function submit() {
|
||||
/>
|
||||
|
||||
<div
|
||||
class="flex min-h-[280px] sm:min-h-[unset] sm:aspect-video w-full items-center justify-center rounded-xl border overflow-hidden"
|
||||
class="flex min-h-[280px] w-full items-center justify-center overflow-hidden rounded-xl border sm:aspect-video sm:min-h-[unset]"
|
||||
>
|
||||
<ScrollArea
|
||||
v-if="uploadStore.files.length > 0"
|
||||
class="h-full w-full"
|
||||
>
|
||||
<div
|
||||
class="flex h-full w-full flex-col items-stretch gap-2 text-left p-4"
|
||||
class="flex h-full w-full flex-col items-stretch gap-2 p-4 text-left"
|
||||
>
|
||||
<UploadListEntry
|
||||
v-for="(file, i) in uploadStore.files"
|
||||
|
||||
@@ -16,15 +16,15 @@ function createObjectUrl(file: File): string {
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="flex border rounded-lg flex-row items-center justify-between gap-4 px-3 py-3"
|
||||
class="flex flex-row items-center justify-between gap-4 rounded-lg border px-3 py-3"
|
||||
>
|
||||
<div
|
||||
:class="[
|
||||
'rounded-md border overflow-hidden w-12 h-12 min-w-12 min-h-12 items-center justify-center flex',
|
||||
'flex h-12 min-h-12 w-12 min-w-12 items-center justify-center overflow-hidden rounded-md border',
|
||||
{ 'p-2': !file.data.type.startsWith('image/') },
|
||||
]"
|
||||
>
|
||||
<div v-if="file.status === 'not_uploaded'" class="w-full h-full">
|
||||
<div v-if="file.status === 'not_uploaded'" class="h-full w-full">
|
||||
<img
|
||||
v-if="file.data.type.startsWith('image/')"
|
||||
:src="createObjectUrl(file.data)"
|
||||
@@ -48,17 +48,17 @@ function createObjectUrl(file: File): string {
|
||||
/>
|
||||
<Icon
|
||||
v-else-if="file.status === 'failed'"
|
||||
class="h-5 w-5 text-destructive-foreground"
|
||||
class="text-destructive-foreground h-5 w-5"
|
||||
name="lucide:circle-alert"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex flex-col grow overflow-hidden">
|
||||
<span class="font-medium truncate">{{ file.data.name }}</span>
|
||||
<div class="flex grow flex-col overflow-hidden">
|
||||
<span class="truncate font-medium">{{ file.data.name }}</span>
|
||||
<span class="text-muted-foreground"
|
||||
>{{ byteSize(file.data.size) }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex flex-row gap-2 items-center">
|
||||
<div class="flex flex-row items-center gap-2">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
|
||||
Reference in New Issue
Block a user