mirror of
https://github.com/owncast/owncast.git
synced 2024-12-27 11:38:28 +03:00
2d72935564
* 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 <>
28 lines
993 B
TypeScript
28 lines
993 B
TypeScript
import { FC } from 'react';
|
|
import { useRecoilValue } from 'recoil';
|
|
import styles from './Footer.module.scss';
|
|
import { ServerStatus } from '../../../interfaces/server-status.model';
|
|
import { serverStatusState } from '../../stores/ClientConfigStore';
|
|
|
|
export const Footer: FC = () => {
|
|
const clientStatus = useRecoilValue<ServerStatus>(serverStatusState);
|
|
const { versionNumber } = clientStatus;
|
|
return (
|
|
<footer className={styles.footer} id="footer">
|
|
<span>
|
|
Powered by <a href="https://owncast.online">Owncast v{versionNumber}</a>
|
|
</span>
|
|
<span className={styles.links}>
|
|
<a href="https://owncast.online/docs" target="_blank" rel="noreferrer">
|
|
Documentation
|
|
</a>
|
|
<a href="https://owncast.online/help" target="_blank" rel="noreferrer">
|
|
Contribute
|
|
</a>
|
|
<a href="https://github.com/owncast/owncast" target="_blank" rel="noreferrer">
|
|
Source
|
|
</a>
|
|
</span>
|
|
</footer>
|
|
);
|
|
};
|