mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 19:03:43 +01:00
Set marginRight as string (#24422)
This commit is contained in:
parent
ab3f23da91
commit
927b2fd138
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue