Browse Source

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

pull/2997/head
Gabe Kangas 2 years ago
parent
commit
4fa960be8b
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      web/components/layouts/Main/Main.tsx
  2. 2
      web/components/ui/Content/Content.tsx

2
web/components/layouts/Main/Main.tsx

@ -59,7 +59,7 @@ export const Main: FC = () => { @@ -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);

2
web/components/ui/Content/Content.tsx

@ -181,7 +181,7 @@ export const Content: FC = () => { @@ -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 (
<>

Loading…
Cancel
Save