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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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