fixed mobile ui overflowing
This commit is contained in:
@@ -2,7 +2,13 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr auto;
|
grid-template-columns: 1fr auto;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
background-color: var(--theme-color-background-main);
|
background-color: var(--theme-color-background-main);
|
||||||
|
|
||||||
|
.mainSection {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
.topSection {
|
.topSection {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useRecoilState, useRecoilValue } from 'recoil';
|
import { useRecoilState, useRecoilValue } from 'recoil';
|
||||||
import { Layout, Tabs, Spin } from 'antd';
|
import { Layout, Tabs, Spin } from 'antd';
|
||||||
import { FC, useEffect, useState } from 'react';
|
import { FC, useEffect, useState } from 'react';
|
||||||
import classNames from 'classnames';
|
import cn from 'classnames';
|
||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
import { LOCAL_STORAGE_KEYS, getLocalStorage, setLocalStorage } from '../../../utils/localStorage';
|
import { LOCAL_STORAGE_KEYS, getLocalStorage, setLocalStorage } from '../../../utils/localStorage';
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ const MobileContent = ({
|
|||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames(styles.lowerSectionMobile)}>
|
<div className={cn(styles.lowerSectionMobile)}>
|
||||||
<Tabs defaultActiveKey="0" items={items} />
|
<Tabs defaultActiveKey="0" items={items} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -215,7 +215,7 @@ export const Content: FC = () => {
|
|||||||
<div className={styles.main}>
|
<div className={styles.main}>
|
||||||
<Spin wrapperClassName={styles.loadingSpinner} size="large" spinning={appState.appLoading}>
|
<Spin wrapperClassName={styles.loadingSpinner} size="large" spinning={appState.appLoading}>
|
||||||
<AntContent className={styles.root}>
|
<AntContent className={styles.root}>
|
||||||
<div className={styles.leftContent}>
|
<div className={styles.mainSection}>
|
||||||
<div className={styles.topSection}>
|
<div className={styles.topSection}>
|
||||||
{online && <OwncastPlayer source="/hls/stream.m3u8" online={online} />}
|
{online && <OwncastPlayer source="/hls/stream.m3u8" online={online} />}
|
||||||
{!online && !appState.appLoading && (
|
{!online && !appState.appLoading && (
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
z-index: 20;
|
z-index: 20;
|
||||||
padding: 0.4rem 0.7rem;
|
padding: 0.4rem 0.7rem;
|
||||||
box-shadow: 0px 1px 3px 1px rgb(0 0 0 / 10%);
|
box-shadow: 0px 1px 3px 1px rgb(0 0 0 / 10%);
|
||||||
|
|
||||||
background-color: var(--theme-color-background-header);
|
background-color: var(--theme-color-background-header);
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
@@ -17,15 +16,9 @@
|
|||||||
color: var(--theme-color-components-text-on-dark);
|
color: var(--theme-color-components-text-on-dark);
|
||||||
font-family: var(--theme-text-display-font-family);
|
font-family: var(--theme-text-display-font-family);
|
||||||
margin-left: 0.5rem;
|
margin-left: 0.5rem;
|
||||||
font-size: 1.5rem;
|
font-size: clamp(1rem, 4vw, 2rem);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.header {
|
|
||||||
line-height: 5vh;
|
|
||||||
height: 5vh;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
.root {
|
.root {
|
||||||
background-color: var(--theme-color-background-chat);
|
background-color: var(--theme-color-background-chat);
|
||||||
display: none;
|
display: none;
|
||||||
--header-h: 64px;
|
// --header-h: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.root {
|
.root {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: var(--header-h);
|
// top: var(--header-h);
|
||||||
display: block;
|
display: block;
|
||||||
height: calc(100vh - var(--header-h));
|
// height: calc(100vh - var(--header-h));
|
||||||
max-height: calc(100vh - var(--header-h));
|
// max-height: calc(100vh - var(--header-h));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
/* ------------------------- //
|
||||||
|
HEADER
|
||||||
|
// ------------------------- */
|
||||||
|
|
||||||
|
.ant-layout-header {
|
||||||
|
line-height: unset;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
/* ------------------------- //
|
/* ------------------------- //
|
||||||
BUTTONS
|
BUTTONS
|
||||||
// ------------------------- */
|
// ------------------------- */
|
||||||
|
|||||||
Reference in New Issue
Block a user