mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
[Glitch] Reset background color on media modal
Port 882afd7748 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -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<{
|
||||||
|
|||||||
Reference in New Issue
Block a user