fix(ui): fix dynamic padding not taking disabled chat state into account

This commit is contained in:
Gabe Kangas 2023-05-06 20:06:39 -07:00
parent 933656c3a7
commit 4fa960be8b
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ export const Main: FC = () => {
const { online, streamTitle, versionNumber: version } = clientStatus;
// accounts for sidebar width when online in desktop
const dynamicPadding = online && !isMobile ? '320px' : '0px';
const dynamicPadding = online && !chatDisabled && !isMobile ? '320px' : '0px';
useEffect(() => {
setupNoLinkReferrer(layoutRef.current);

View File

@ -181,7 +181,7 @@ export const Content: FC = () => {
const showChat = online && !chatDisabled && isChatVisible;
// accounts for sidebar width when online in desktop
const dynamicPadding = online && !isMobile ? '320px' : '0px';
const dynamicPadding = online && !chatDisabled && !isMobile ? '320px' : '0px';
return (
<>