+ useEffect(() => {
+ console.log({ online });
+ }, [online]);
+
+ return isMobile ? (
+
+
+
+
+ {online && (
+ <>
+ {viewerCount}
+
+ >
+ )}
+
+
+ {online &&
}
+
{online ? 'LIVE' : 'OFFLINE'}
+
+
+
+ ) : (
+
@@ -23,6 +63,12 @@ export default function StreamInfo() {
+
);
}
diff --git a/web/components/ui/Content/Content.module.scss b/web/components/ui/Content/Content.module.scss
index 2f96af2d2..6c649c3a3 100644
--- a/web/components/ui/Content/Content.module.scss
+++ b/web/components/ui/Content/Content.module.scss
@@ -1,32 +1,8 @@
.root {
display: grid;
grid-template-columns: 1fr auto;
- &.mobile {
- display: flex;
- flex-direction: column;
- height: calc(100vh - 64px);
- overflow-y: hidden;
- .topHalf {
- border: 1px dashed white;
- height: calc(40vh - 64px);
- overflow: hidden;
- }
- .lowerHalf {
- border: 1px dashed red;
- height: 60vh;
- }
- }
}
-.mobileChat {
- position: relative;
- display: block;
- // top: 0px;
- width: 100%;
- [data-virtuoso-scroller] {
- height: 500px;
- }
-}
.leftCol {
display: flex;
@@ -40,3 +16,26 @@
z-index: 999999;
}
+.mobile {
+ &.root {
+ display: flex;
+ flex-direction: column;
+ height: calc(100vh - 64px);
+ overflow: hidden;
+ .topHalf {
+ display: grid;
+ grid-template-rows: 30vh 5vh 5vh;
+ height: 40vh;
+ // overflow: hidden;
+ }
+ .lowerHalf {
+ height: 60vh;
+ }
+ }
+ .mobileChat {
+ position: relative;
+ display: block;
+ height: 100%;
+ width: 100%;
+ }
+}
diff --git a/web/components/ui/Content/Content.tsx b/web/components/ui/Content/Content.tsx
index 9564a5bf0..32d2ecf79 100644
--- a/web/components/ui/Content/Content.tsx
+++ b/web/components/ui/Content/Content.tsx
@@ -11,7 +11,6 @@ import {
chatDisplayNameAtom,
chatUserIdAtom,
isChatVisibleSelector,
- serverStatusState,
appStateAtom,
isOnlineSelector,
isMobileAtom,
@@ -28,8 +27,6 @@ import { ChatMessage } from '../../../interfaces/chat-message.model';
import ChatTextField from '../../chat/ChatTextField/ChatTextField';
import ActionButtonRow from '../../action-buttons/ActionButtonRow';
import ActionButton from '../../action-buttons/ActionButton';
-import Statusbar from '../Statusbar/Statusbar';
-import { ServerStatus } from '../../../interfaces/server-status.model';
import { Follower } from '../../../interfaces/follower';
import NotifyReminderPopup from '../NotifyReminderPopup/NotifyReminderPopup';
import OfflineBanner from '../OfflineBanner/OfflineBanner';
@@ -38,13 +35,13 @@ import FollowButton from '../../action-buttons/FollowButton';
import NotifyButton from '../../action-buttons/NotifyButton';
import Modal from '../Modal/Modal';
import BrowserNotifyModal from '../../modals/BrowserNotify/BrowserNotifyModal';
+import StreamInfo from '../../common/StreamInfo';
const { TabPane } = Tabs;
const { Content } = Layout;
export default function ContentComponent() {
const appState = useRecoilValue
(appStateAtom);
- const status = useRecoilValue(serverStatusState);
const clientConfig = useRecoilValue(clientConfigStateAtom);
const isChatVisible = useRecoilValue(isChatVisibleSelector);
const [isMobile, setIsMobile] = useRecoilState(isMobileAtom);
@@ -54,7 +51,6 @@ export default function ContentComponent() {
const chatUserId = useRecoilValue(chatUserIdAtom);
const { extraPageContent, version, name, summary } = clientConfig;
- const { viewerCount, lastConnectTime, lastDisconnectTime } = status;
const [showNotifyReminder, setShowNotifyReminder] = useState(false);
const [showNotifyPopup, setShowNotifyPopup] = useState(false);
@@ -129,13 +125,6 @@ export default function ContentComponent() {
text="Stream is offline text goes here. Will create a new form to set it in the Admin."
/>
)}
-
-
{externalActionButtons}
@@ -158,12 +147,18 @@ export default function ContentComponent() {
+