This commit is contained in:
Timothy Jaeryang Baek
2025-05-04 00:20:30 +04:00
parent 59e52add63
commit c5c98591f9
+3 -2
View File
@@ -331,9 +331,9 @@
</div> </div>
<div class=" flex-1 w-full h-full overflow-auto px-4 pb-5"> <div class=" flex-1 w-full h-full overflow-auto px-4 pb-5">
{#if note.data?.files} {#if files}
<div class="mb-3.5 mt-1.5 w-full flex gap-1 flex-wrap z-40"> <div class="mb-3.5 mt-1.5 w-full flex gap-1 flex-wrap z-40">
{#each note.data.files as file, fileIdx} {#each files as file, fileIdx}
<div class="w-fit"> <div class="w-fit">
{#if file.type === 'image'} {#if file.type === 'image'}
<Image <Image
@@ -353,6 +353,7 @@
name={file.name} name={file.name}
type={file.type} type={file.type}
size={file?.size} size={file?.size}
loading={file.status === 'uploading'}
colorClassName="bg-white dark:bg-gray-850 " colorClassName="bg-white dark:bg-gray-850 "
on:dismiss={() => { on:dismiss={() => {
files = files.filter((item) => item?.id !== file.id); files = files.filter((item) => item?.id !== file.id);