Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Experiment with showing footer on about tab for mobile

Gabe Kangas2e8001f7473f
diff --git a/web/components/ui/Content/Content.tsx b/web/components/ui/Content/Content.tsx
index ece7800ecb..4661202854 100644
--- a/web/components/ui/Content/Content.tsx
+++ b/web/components/ui/Content/Content.tsx
@@ -312,7 +312,7 @@ export const Content: FC = () => {
{showChat && !isMobile && <Sidebar />}
</AntContent>
</Spin>
- {(!isMobile || !showChat) && <Footer version={version} />}
+ {!isMobile && <Footer version={version} />}
</div>
);
};
diff --git a/web/components/ui/CustomPageContent/CustomPageContent.tsx b/web/components/ui/CustomPageContent/CustomPageContent.tsx
index c4f0f3b579..456c22f867 100644
--- a/web/components/ui/CustomPageContent/CustomPageContent.tsx
+++ b/web/components/ui/CustomPageContent/CustomPageContent.tsx
@@ -1,13 +1,25 @@
/* eslint-disable react/no-danger */
import { FC } from 'react';
+import { useRecoilValue } from 'recoil';
+import Footer from '../Footer/Footer';
import styles from './CustomPageContent.module.scss';
+import { isMobileAtom, clientConfigStateAtom } from '../../stores/ClientConfigStore';
+import { ClientConfig } from '../../../interfaces/client-config.model';
export type CustomPageContentProps = {
content: string;
};
-export const CustomPageContent: FC<CustomPageContentProps> = ({ content }) => (
- <div className={styles.pageContentContainer}>
- <div className={styles.customPageContent} dangerouslySetInnerHTML={{ __html: content }} />
- </div>
-);
+export const CustomPageContent: FC<CustomPageContentProps> = ({ content }) => {
+ const isMobile = useRecoilValue<boolean | undefined>(isMobileAtom);
+ const clientConfig = useRecoilValue<ClientConfig>(clientConfigStateAtom);
+ const { version } = clientConfig;
+ return (
+ <>
+ <div className={styles.pageContentContainer}>
+ <div className={styles.customPageContent} dangerouslySetInnerHTML={{ __html: content }} />
+ </div>
+ {isMobile && <Footer version={version} />}
+ </>
+ );
+};
diff --git a/web/components/ui/Footer/Footer.module.scss b/web/components/ui/Footer/Footer.module.scss
index e3de0a729a..55f7236030 100644
--- a/web/components/ui/Footer/Footer.module.scss
+++ b/web/components/ui/Footer/Footer.module.scss
@@ -12,10 +12,6 @@
font-weight: 600;
border-top: 1px solid rgba(214, 211, 211, 0.5);
- @media (max-width: 600px) {
- display: none;
- }
-
a {
color: var(--theme-text-secondary);
}