diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-07-31 23:04:09 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-08-01 00:18:42 +0200 |
commit | 175c2155a9c674fc225cc943a3fb6fdfc26571f7 (patch) | |
tree | 25bb51989c1ec808b3ea7958c963ff2d03860d06 /app/javascript/flavours/glitch/containers | |
parent | d2b3eebe00ea60df56704045a8459acb03867555 (diff) |
[Glitch] Compensate for scrollbar disappearing when media modal
Port 60df87f6f0fb8afd9a4e750917eff7c425b62891 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/containers')
-rw-r--r-- | app/javascript/flavours/glitch/containers/media_container.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/containers/media_container.js b/app/javascript/flavours/glitch/containers/media_container.js index 0e1904132..c4b713e82 100644 --- a/app/javascript/flavours/glitch/containers/media_container.js +++ b/app/javascript/flavours/glitch/containers/media_container.js @@ -29,19 +29,19 @@ export default class MediaContainer extends PureComponent { }; handleOpenMedia = (media, index) => { - document.body.classList.add('media-standalone__body'); + document.body.classList.add('with-modals--active'); this.setState({ media, index }); } handleOpenVideo = (video, time) => { const media = ImmutableList([video]); - document.body.classList.add('media-standalone__body'); + document.body.classList.add('with-modals--active'); this.setState({ media, time }); } handleCloseMedia = () => { - document.body.classList.remove('media-standalone__body'); + document.body.classList.remove('with-modals--active'); this.setState({ media: null, index: null, time: null }); } |