diff --git a/src/components/DocumentView/InlineImage.tsx b/src/components/DocumentView/InlineImage.tsx index 24cafc897..f2ba7d5f8 100644 --- a/src/components/DocumentView/InlineImage.tsx +++ b/src/components/DocumentView/InlineImage.tsx @@ -38,7 +38,11 @@ export async function InlineImage(props: InlineProps) { }} priority="lazy" preload - style={[size === 'line' ? ['max-h-[1lh]', 'h-[1lh]', 'w-auto'] : ['max-w-[300px]']]} + style={[ + size === 'line' + ? ['max-h-[1lh]', 'h-[1lh]', 'w-auto'] + : ['w-full', 'max-w-[300px]'], + ]} inline zoom />