~cytrogen/masto-fe

927b2fd1386bce6fda1d2ff53ceadd82289d77ce — Nick Schonning 3 years ago ab3f23d
Set marginRight as string (#24422)

M app/javascript/mastodon/containers/media_container.jsx => app/javascript/mastodon/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/mastodon/features/ui/components/modal_root.jsx => app/javascript/mastodon/features/ui/components/modal_root.jsx +1 -1
@@ 73,7 73,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';
    }
  }