fix(ui): fix session loader

This commit is contained in:
nick-delirium 2023-03-31 10:40:26 +02:00
parent a2da0b3fb5
commit cf728eb310

View file

@ -100,7 +100,7 @@ function WebPlayer(props: any) {
contextValue.player.play();
};
if (!session) return <Loader size={75} style={{ position: 'fixed', top: '50%', left: '50%', transform: 'translateX(-50%)' }} />;
if (!session.sessionId) return <Loader size={75} style={{ position: 'fixed', top: '50%', left: '50%', transform: 'translateX(-50%)', height: 75 }} />;
return (
<PlayerContext.Provider value={contextValue}>