refac: file item modal

This commit is contained in:
Timothy Jaeryang Baek
2025-08-28 02:59:45 +04:00
parent 52030a241c
commit 40617b9e0e
2 changed files with 39 additions and 7 deletions
+1 -1
View File
@@ -51,7 +51,7 @@
: 'rounded-2xl'} text-left"
type="button"
on:click={async () => {
if (item?.file?.data?.content || modal) {
if (item?.file?.data?.content || item?.type === 'file' || modal) {
showModal = !showModal;
} else {
if (url) {