Skip to content

Commit dc6dc4a

Browse files
committed
fix styling issue in draft page rotation
1 parent b643d61 commit dc6dc4a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

web/ui-customization-doc-editor-sidebar/src/DocumentEditor.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,16 @@ const DocumentEditor = (props: Props) => {
414414
: undefined;
415415

416416
return (
417-
<img src={draftPage.src} alt={draftPage.alt} style={style} width="100%" />
417+
<img
418+
src={draftPage.src}
419+
alt={draftPage.alt}
420+
style={style}
421+
width={
422+
draftPage.rotation === 90 || draftPage.rotation === 270
423+
? "250px"
424+
: "180px"
425+
}
426+
/>
418427
);
419428
};
420429

0 commit comments

Comments
 (0)