refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2025-07-14 17:47:21 +04:00
parent 7f1f39058a
commit f19d5b05a8
2 changed files with 12 additions and 3 deletions

View file

@ -153,6 +153,7 @@
...file, ...file,
name: file?.meta?.name, name: file?.meta?.name,
description: `${file?.collection?.name} - ${file?.collection?.description}`, description: `${file?.collection?.name} - ${file?.collection?.description}`,
knowledge: true, // DO NOT REMOVE, USED TO INDICATE KNOWLEDGE BASE FILE
type: 'file' type: 'file'
})) }))
] ]

View file

@ -112,6 +112,12 @@
Formatting may be inconsistent from source. Formatting may be inconsistent from source.
</div> </div>
{/if} {/if}
{#if item?.knowledge}
<div class="capitalize shrink-0">
{$i18n.t('Knowledge Base')}
</div>
{/if}
</div> </div>
{#if edit} {#if edit}
@ -172,10 +178,12 @@
/> />
{/if} {/if}
{#if item?.file?.data}
<div class="max-h-96 overflow-scroll scrollbar-hidden text-xs whitespace-pre-wrap"> <div class="max-h-96 overflow-scroll scrollbar-hidden text-xs whitespace-pre-wrap">
{item?.file?.data?.content ?? 'No content'} {item?.file?.data?.content ?? 'No content'}
</div> </div>
{/if} {/if}
{/if}
</div> </div>
</div> </div>
</Modal> </Modal>