"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "e20baad60112e2d909b7a032726e906b1c34c213"
Commit 86359ef3 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent 9e48aeca
...@@ -99,12 +99,8 @@ ...@@ -99,12 +99,8 @@
<div class={$settings?.chatBubble ?? true ? 'self-end' : ''}> <div class={$settings?.chatBubble ?? true ? 'self-end' : ''}>
{#if file.type === 'image'} {#if file.type === 'image'}
<img src={file.url} alt="input" class=" max-h-96 rounded-lg" draggable="false" /> <img src={file.url} alt="input" class=" max-h-96 rounded-lg" draggable="false" />
{:else if file.type === 'file'} {:else}
<FileItem url={`${file?.url}/content`} name={file.name} type={$i18n.t('File')} /> <FileItem url={file.url} name={file.name} type={file.type} />
{:else if file.type === 'doc'}
<FileItem url={`${file?.url}`} name={file.name} type={$i18n.t('Document')} />
{:else if file.type === 'collection'}
<FileItem name={file?.title ?? `#${file.name}`} type={$i18n.t('Collection')} />
{/if} {/if}
</div> </div>
{/each} {/each}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment