change chat from a sidebar to a column (#3113)

* change chat from a sidebar to a column

Using a 2-column layout prevents the chat scrollbar from overlapping the page
scrollbar. Also, it no longer needs to calculate extra padding for elements.

* remove unused Sidebar.tsx

* fix css for chat column

* re-center "Go to last message" button

* main content column always uses maximum height

* lint

* re-hide scrollbars in mainContent on chromium

* fix chat column width when input is over-full

* chat is only fixed-width in desktop

---------

Co-authored-by: janWilejan <>
This commit is contained in:
janWilejan
2023-07-09 21:07:35 +00:00
committed by GitHub
parent 60d6cda3a6
commit 2d72935564
11 changed files with 114 additions and 196 deletions

View File

@@ -4,18 +4,11 @@ import styles from './Footer.module.scss';
import { ServerStatus } from '../../../interfaces/server-status.model';
import { serverStatusState } from '../../stores/ClientConfigStore';
export type FooterProps = {
dynamicPaddingValue?: string;
};
export const Footer: FC<FooterProps> = ({ dynamicPaddingValue }) => {
export const Footer: FC = () => {
const clientStatus = useRecoilValue<ServerStatus>(serverStatusState);
const { versionNumber } = clientStatus;
const dynamicPaddingStyle = dynamicPaddingValue
? { paddingRight: `calc(${dynamicPaddingValue} + var(--footer-padding-x)` }
: null;
return (
<footer className={styles.footer} id="footer" style={dynamicPaddingStyle}>
<footer className={styles.footer} id="footer">
<span>
Powered by <a href="https://owncast.online">Owncast v{versionNumber}</a>
</span>