[Glitch] Reset background color on media modal

Port 882afd774863f5e6779daa5271a29107bffe16ee to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo 2025-11-07 11:44:31 +01:00 committed by Claire
parent 08ef682995
commit 474cab03bd

View File

@ -116,6 +116,9 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
onChangeBackgroundColor(backgroundColor);
}
}
return () => {
onChangeBackgroundColor(null);
};
}, [currentMedia, onChangeBackgroundColor]);
const [viewportDimensions, setViewportDimensions] = useState<{