This commit is contained in:
Timothy J. Baek
2024-09-29 23:08:55 +02:00
parent 677c36c3aa
commit 6afc686e17
6 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
class="h-14 {className} flex items-center space-x-3 {colorClassName} rounded-xl border border-gray-100 dark:border-gray-800 text-left"
type="button"
on:click={async () => {
if (file.content) {
if (file?.file?.content) {
showModal = !showModal;
} else {
if (url) {
@@ -61,8 +61,10 @@
•
{/if}
{#if file.content}
<div class="capitalize shrink-0">{getLineCount(file.content)} extracted lines</div>
{#if file?.file?.content}
<div class="capitalize shrink-0">
{getLineCount(file?.file?.content ?? '')} extracted lines
</div>
<div class="flex items-center gap-1 shrink-0">
<Info />
@@ -100,7 +102,7 @@
</div>
<div class="max-h-96 overflow-scroll scrollbar-hidden text-xs whitespace-pre-wrap">
{file?.content ?? 'No content'}
{file?.file?.content ?? 'No content'}
</div>
</div>
</Modal>