diff --git a/web/components/chat/ChatContainer/ChatContainer.module.scss b/web/components/chat/ChatContainer/ChatContainer.module.scss index ec23ab897..0d010f4e0 100644 --- a/web/components/chat/ChatContainer/ChatContainer.module.scss +++ b/web/components/chat/ChatContainer/ChatContainer.module.scss @@ -2,8 +2,8 @@ // The button that is displayed to scroll to the bottom of the chat. .toBottomWrap { + align-self: center; display: flex; - width: 100%; justify-content: center; position: absolute; bottom: 75px; @@ -23,6 +23,7 @@ } .chatContainer { + flex: 0 0 auto; display: flex; flex-direction: column; background-color: var(--theme-color-components-chat-background); diff --git a/web/components/layouts/Main/Main.module.scss b/web/components/layouts/Main/Main.module.scss index 8415abb45..d38baed0b 100644 --- a/web/components/layouts/Main/Main.module.scss +++ b/web/components/layouts/Main/Main.module.scss @@ -4,7 +4,8 @@ // this margin is for fixed header padding-top: var(--header-height); background-color: var(--theme-color-main-background); - min-height: 100vh; + height: 100vh; + display: flex; position: relative; // add some spacing between the last row of content and the footer diff --git a/web/components/layouts/Main/Main.tsx b/web/components/layouts/Main/Main.tsx index 60855ff33..d3b6ddd46 100644 --- a/web/components/layouts/Main/Main.tsx +++ b/web/components/layouts/Main/Main.tsx @@ -8,7 +8,6 @@ import { Layout } from 'antd'; import dynamic from 'next/dynamic'; import Script from 'next/script'; import { ErrorBoundary } from 'react-error-boundary'; -import { Footer } from '../../ui/Footer/Footer'; import { ClientConfigStore, isChatAvailableSelector, @@ -16,9 +15,6 @@ import { fatalErrorStateAtom, appStateAtom, serverStatusState, - isMobileAtom, - ChatState, - chatStateAtom, } from '../../stores/ClientConfigStore'; import { Content } from '../../ui/Content/Content'; import { Header } from '../../ui/Header/Header'; @@ -33,7 +29,6 @@ import { PushNotificationServiceWorker } from '../../workers/PushNotificationSer import { AppStateOptions } from '../../stores/application-state'; import { Noscript } from '../../ui/Noscript/Noscript'; import { ServerStatus } from '../../../interfaces/server-status.model'; -import { DYNAMIC_PADDING_VALUE } from '../../../utils/constants'; // Lazy loaded components @@ -54,17 +49,11 @@ export const Main: FC = () => { const isChatAvailable = useRecoilValue(isChatAvailableSelector); const fatalError = useRecoilValue(fatalErrorStateAtom); const appState = useRecoilValue(appStateAtom); - const isMobile = useRecoilValue(isMobileAtom); - const chatState = useRecoilValue(chatStateAtom); const layoutRef = useRef(null); const { chatDisabled } = clientConfig; const { videoAvailable } = appState; const { online, streamTitle } = clientStatus; - // accounts for sidebar width when online in desktop - const showChat = online && !chatDisabled && chatState === ChatState.VISIBLE; - const dynamicFooterPadding = showChat && !isMobile ? DYNAMIC_PADDING_VALUE : ''; - useEffect(() => { setupNoLinkReferrer(layoutRef.current); }, []); @@ -171,10 +160,6 @@ export const Main: FC = () => { {fatalError && ( )} - -
-
-