mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
fix(ui): fix dynamic padding not taking disabled chat state into account
This commit is contained in:
parent
933656c3a7
commit
4fa960be8b
@ -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);
|
||||
|
@ -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…
x
Reference in New Issue
Block a user