[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:
Echo authored and Claire committed 2025-11-08 10:46:33 +01:00
1 parent 08ef682995
commit 474cab03bd
1 file changed
+3
@@ -116,6 +116,9 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
onChangeBackgroundColor(backgroundColor);
}
}
return () => {
onChangeBackgroundColor(null);
};
}, [currentMedia, onChangeBackgroundColor]);
const [viewportDimensions, setViewportDimensions] = useState<{