diff --git a/Clipper/joplin-webclipper/popup/src/App.css b/Clipper/joplin-webclipper/popup/src/App.css index 79339e5e10..dd7661de91 100644 --- a/Clipper/joplin-webclipper/popup/src/App.css +++ b/Clipper/joplin-webclipper/popup/src/App.css @@ -1,6 +1,6 @@ .App { width: 400px; - height: 600px; + overflow-x: hidden; overflow-y: hidden; display: flex; diff --git a/Clipper/joplin-webclipper/popup/src/App.js b/Clipper/joplin-webclipper/popup/src/App.js index aa5f4e1fdb..109bf8aced 100644 --- a/Clipper/joplin-webclipper/popup/src/App.js +++ b/Clipper/joplin-webclipper/popup/src/App.js @@ -16,6 +16,8 @@ class PreviewComponent extends React.PureComponent { } componentDidMount() { + if (!this.bodyRef.current) return; + // Because the text size is made twice smaller with CSS, we need // to also reduce the size of the images const imgs = this.bodyRef.current.getElementsByTagName('img'); @@ -28,14 +30,22 @@ class PreviewComponent extends React.PureComponent { render() { return (
); + + // return ( + // + // ); } }