~cytrogen/masto-fe

f3f7ef2d13a76f35ccd41cd003450b084bf6ccf6 — Nick Schonning 3 years ago 358e406
[Glitch] Set marginRight as string

Port 927b2fd1386bce6fda1d2ff53ceadd82289d77ce to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
M app/javascript/flavours/glitch/containers/media_container.jsx => app/javascript/flavours/glitch/containers/media_container.jsx +1 -1
@@ 54,7 54,7 @@ export default class MediaContainer extends PureComponent {

  handleCloseMedia = () => {
    document.body.classList.remove('with-modals--active');
    document.documentElement.style.marginRight = 0;
    document.documentElement.style.marginRight = '0';

    this.setState({
      media: null,

M app/javascript/flavours/glitch/features/ui/components/modal_root.jsx => app/javascript/flavours/glitch/features/ui/components/modal_root.jsx +1 -1
@@ 81,7 81,7 @@ export default class ModalRoot extends React.PureComponent {
      document.documentElement.style.marginRight = `${getScrollbarWidth()}px`;
    } else {
      document.body.classList.remove('with-modals--active');
      document.documentElement.style.marginRight = 0;
      document.documentElement.style.marginRight = '0';
    }
  }