From ffc73f2760795de2164d5d2a7b2e6cf78c3e8f86 Mon Sep 17 00:00:00 2001 From: t1enne Date: Fri, 8 Jul 2022 09:10:18 +0200 Subject: [PATCH] Added chat tab on mobile layouts and other changes to mobile UI --- .../action-buttons/ActionButtons.module.scss | 6 +- .../action-buttons/FollowButton.tsx | 5 +- .../chat/ChatContainer/ChatContainer.tsx | 10 +- .../ChatTextField/ChatTextField.module.scss | 11 ++ web/components/common/Logo/Logo.module.scss | 12 +- .../common/StreamInfo/StreamInfo.module.scss | 36 +++++ .../common/StreamInfo/StreamInfo.tsx | 28 ++++ web/components/common/StreamInfo/index.ts | 0 web/components/ui/Content/Content.module.scss | 56 ++------ web/components/ui/Content/Content.tsx | 133 ++++++++---------- web/components/ui/Header/Header.module.scss | 2 +- web/components/ui/Logo/Logo.module.scss | 4 +- web/components/ui/Logo/index.ts | 1 + .../OfflineBanner/OfflineBanner.module.scss | 8 +- .../ui/Statusbar/Statusbar.module.scss | 4 +- web/components/ui/index.tsx | 1 + web/components/video/VideoPoster.tsx | 3 +- web/components/video/player.scss | 4 +- web/styles/ant-overrides.scss | 2 + web/styles/globals.scss | 3 +- 20 files changed, 183 insertions(+), 146 deletions(-) create mode 100644 web/components/common/StreamInfo/StreamInfo.module.scss create mode 100644 web/components/common/StreamInfo/StreamInfo.tsx create mode 100644 web/components/common/StreamInfo/index.ts create mode 100644 web/components/ui/Logo/index.ts diff --git a/web/components/action-buttons/ActionButtons.module.scss b/web/components/action-buttons/ActionButtons.module.scss index 709b35d27..6e64c367d 100644 --- a/web/components/action-buttons/ActionButtons.module.scss +++ b/web/components/action-buttons/ActionButtons.module.scss @@ -1,10 +1,10 @@ .row { - margin: 5px; + padding: .3rem; display: flex; align-items: center; justify-content: flex-end; button { - margin-left: 5px; - margin-right: 5px; + margin-left: .3rem; + margin-right: .3rem; } } diff --git a/web/components/action-buttons/FollowButton.tsx b/web/components/action-buttons/FollowButton.tsx index ae9f5a787..4c4357321 100644 --- a/web/components/action-buttons/FollowButton.tsx +++ b/web/components/action-buttons/FollowButton.tsx @@ -8,7 +8,7 @@ import s from './ActionButton.module.scss'; import { clientConfigStateAtom } from '../stores/ClientConfigStore'; import { ClientConfig } from '../../interfaces/client-config.model'; -export default function FollowButton() { +export default function FollowButton(props: any) { const [showModal, setShowModal] = useState(false); const clientConfig = useRecoilValue(clientConfigStateAtom); const { name } = clientConfig; @@ -20,8 +20,9 @@ export default function FollowButton() { return ( <>