mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
Reset background color on media modal (#36782)
This commit is contained in:
parent
8fb06ea0ca
commit
882afd7748
|
|
@ -116,6 +116,9 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
|
||||||
onChangeBackgroundColor(backgroundColor);
|
onChangeBackgroundColor(backgroundColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return () => {
|
||||||
|
onChangeBackgroundColor(null);
|
||||||
|
};
|
||||||
}, [currentMedia, onChangeBackgroundColor]);
|
}, [currentMedia, onChangeBackgroundColor]);
|
||||||
|
|
||||||
const [viewportDimensions, setViewportDimensions] = useState<{
|
const [viewportDimensions, setViewportDimensions] = useState<{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user