Set marginRight as string (#24422)
2 files changed, 2 insertions(+), 2 deletions(-) M app/javascript/mastodon/containers/media_container.jsx M app/javascript/mastodon/features/ui/components/modal_root.jsx
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'; } }