fix: give docx and pptx previews in the file modal a definite frame height (#28878)

This commit is contained in:
G30
2026-08-22 08:11:29 -04:00
committed by GitHub
parent ccbb3303f2
commit d1c207d091
2 changed files with 2 additions and 2 deletions

View File

@@ -569,7 +569,7 @@
{#if docxError}
<div class="text-red-500 text-sm p-4">{docxError}</div>
{:else if docxData}
<DocxPreview data={docxData} className="max-h-[60vh]" />
<DocxPreview data={docxData} className="h-[60vh]" />
{:else}
<div class="text-gray-500 text-sm p-4">No content available</div>
{/if}

View File

@@ -215,7 +215,7 @@
bind:this={rootEl}
class="relative grid {hideThumbs
? 'grid-cols-[minmax(0,1fr)]'
: 'grid-cols-[144px_minmax(0,1fr)]'} h-full min-h-0 bg-transparent text-gray-900 dark:text-gray-100 {className}"
: 'grid-cols-[144px_minmax(0,1fr)]'} min-h-0 bg-transparent text-gray-900 dark:text-gray-100 {className}"
>
<aside
class={hideThumbs