style(drive): fix pdf appears small (#7291)

Signed-off-by: Dakshesh Jain <dakshesh.jain14@gmail.com>
This commit is contained in:
Dakshesh Jain 2024-12-08 01:10:18 +05:30 committed by GitHub
parent e88519257b
commit c100f427f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,13 @@
</script>
{#if object !== undefined && version !== undefined && blob !== undefined && contentType !== undefined}
<FilePreview file={blob} {contentType} name={version.title} metadata={version.metadata} fit />
<FilePreview
file={blob}
{contentType}
name={version.title}
metadata={version.metadata}
fit={contentType !== 'application/pdf'}
/>
{#if object.versions > 1}
<div class="w-full mt-6">