Fix issue where rendering webamp would cause a small jump

This commit is contained in:
Jordan Eldredge 2018-11-25 23:03:05 -08:00
parent d42a494938
commit b2a38f22e5

View file

@ -57,7 +57,14 @@ export default class WebampComponent extends React.Component {
ref={node => (this._ref = node)}
>
<img
style={{ width: "100%", height: "100%" }}
style={{
width: "100%",
height: "100%",
// Webamp measure the scrollHeight of the container. Making this a
// block element ensures the parent element's scrollHeight is not
// expanded.
display: "block"
}}
src={this.props.screenshotUrl}
/>
</div>