diff --git a/plugins/poll/assets/stylesheets/common/poll.scss b/plugins/poll/assets/stylesheets/common/poll.scss index e0126524f20..4669cd293a6 100644 --- a/plugins/poll/assets/stylesheets/common/poll.scss +++ b/plugins/poll/assets/stylesheets/common/poll.scss @@ -25,9 +25,18 @@ div.poll { } img { + // TODO: remove once disable_image_size_calculations is removed // needed to override internal styles in image-sizing hack max-width: 100% !important; height: auto; + // Hacky way to stop images without width/height + // from causing abrupt unintended scrolling + &:not([width]), + &:not([height]) { + width: 200px !important; + height: 200px !important; + object-fit: contain; + } } .poll-info {