fix(ui): use showChat selector for dynamicPadding logic

This commit is contained in:
Gabe Kangas
2023-05-06 20:36:13 -07:00
parent 02b6521cc5
commit 23d29ac2ae
2 changed files with 5 additions and 2 deletions

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 && !chatDisabled && !isMobile ? '320px' : '0px';
const dynamicPadding = showChat && !isMobile ? '320px' : '0px';
return (
<>