Skip to content

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

improv ui: make footer sit at bottom (#2212)

Pranav Joglekare4df6a353ae1
diff --git a/web/components/layouts/Main.tsx b/web/components/layouts/Main.tsx
index d60634a1a5..4fba689ff5 100644
--- a/web/components/layouts/Main.tsx
+++ b/web/components/layouts/Main.tsx
@@ -77,7 +77,7 @@ export const Main: FC = () => {
</Head>
<ClientConfigStore />
- <Layout ref={layoutRef}>
+ <Layout ref={layoutRef} style={{ minHeight: '100vh' }}>
<Header name={title || name} chatAvailable={isChatAvailable} chatDisabled={chatDisabled} />
<Content />
{fatalError && (
diff --git a/web/components/ui/Content/Content.module.scss b/web/components/ui/Content/Content.module.scss
index 8c527e09a1..d5752d54e1 100644
--- a/web/components/ui/Content/Content.module.scss
+++ b/web/components/ui/Content/Content.module.scss
@@ -24,8 +24,12 @@
}
.loadingSpinner {
- position: fixed;
- left: 50%;
- top: 50%;
- z-index: 999999;
+ display: grid;
+}
+
+.main {
+ display: grid;
+ flex: 1;
+ height: 100%;
+ grid-template-rows: 1fr auto;
}
diff --git a/web/components/ui/Content/Content.tsx b/web/components/ui/Content/Content.tsx
index 9595de5e52..b8cb9ac55e 100644
--- a/web/components/ui/Content/Content.tsx
+++ b/web/components/ui/Content/Content.tsx
@@ -212,8 +212,8 @@ export const Content: FC = () => {
const showChat = !chatDisabled && isChatAvailable && isChatVisible;
return (
- <div>
- <Spin className={styles.loadingSpinner} size="large" spinning={appState.appLoading}>
+ <div className={styles.main}>
+ <Spin wrapperClassName={styles.loadingSpinner} size="large" spinning={appState.appLoading}>
<AntContent className={styles.root}>
<div className={styles.leftContent}>
<div className={styles.topSection}>
@@ -286,8 +286,8 @@ export const Content: FC = () => {
</div>
{showChat && !isMobile && <Sidebar />}
</AntContent>
- {(!isMobile || !showChat) && <Footer version={version} />}
</Spin>
+ {(!isMobile || !showChat) && <Footer version={version} />}
</div>
);
};