enh: allow full context mode for collections

This commit is contained in:
Timothy Jaeryang Baek committed 2025-07-09 01:29:49 +04:00
1 parent d5f9bbc7a7
commit b3c4bc6041
4 files changed
+65 -19

No files matched your search

+2 -1
View File
@@ -17,6 +17,7 @@
export let url: string | null = null;
export let dismissible = false;
export let modal = false;
export let loading = false;
export let item = null;
@@ -50,7 +51,7 @@
: 'rounded-2xl'} text-left"
type="button"
on:click={async () => {
if (item?.file?.data?.content) {
if (item?.file?.data?.content || modal) {
showModal = !showModal;
} else {
if (url) {