mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac: styling
This commit is contained in:
@@ -153,6 +153,7 @@
|
||||
...file,
|
||||
name: file?.meta?.name,
|
||||
description: `${file?.collection?.name} - ${file?.collection?.description}`,
|
||||
knowledge: true, // DO NOT REMOVE, USED TO INDICATE KNOWLEDGE BASE FILE
|
||||
type: 'file'
|
||||
}))
|
||||
]
|
||||
|
||||
@@ -112,6 +112,12 @@
|
||||
Formatting may be inconsistent from source.
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if item?.knowledge}
|
||||
<div class="capitalize shrink-0">
|
||||
{$i18n.t('Knowledge Base')}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if edit}
|
||||
@@ -172,10 +178,12 @@
|
||||
/>
|
||||
{/if}
|
||||
|
||||
{#if item?.file?.data}
|
||||
<div class="max-h-96 overflow-scroll scrollbar-hidden text-xs whitespace-pre-wrap">
|
||||
{item?.file?.data?.content ?? 'No content'}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user