Skip to content

Commit 3586434

Browse files
committed
Fix preview popup positioning
1 parent 8739b38 commit 3586434

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/common/components/view-popup/overlay-popup/preview-popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function PreviewPopup(props) {
3131
onRender={handleRender}
3232
>
3333
<div ref={innerRef} className="inner">
34-
<img style={{ maxHeight: props.params.height + 'px', maxWidth: props.params.width + 'px' }} src={props.params.image}/>
34+
<img height={props.params.height} width={props.params.width} src={props.params.image}/>
3535
</div>
3636
</ViewPopup>
3737
);

src/common/stylesheets/components/_view-popup.scss

-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
overflow-y: auto;
119119

120120
img {
121-
max-width: 400px;
122121
@include pdf-page-image-dark-light;
123122
}
124123
}

0 commit comments

Comments
 (0)