From a4748cfc33b05b4ff9b70e3c42fbebff8fd70952 Mon Sep 17 00:00:00 2001 From: Jannik Date: Fri, 26 Feb 2021 22:50:20 +0100 Subject: [PATCH] fix: set thumbnail image to fixed size and fix label color --- web/components/main-layout.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/components/main-layout.tsx b/web/components/main-layout.tsx index 57f0b01a3..efa5e6178 100644 --- a/web/components/main-layout.tsx +++ b/web/components/main-layout.tsx @@ -4,7 +4,7 @@ import Link from 'next/link'; import Head from 'next/head'; import { differenceInSeconds } from 'date-fns'; import { useRouter } from 'next/router'; -import { Layout, Menu, Popover, Alert } from 'antd'; +import { Layout, Menu, Popover, Alert, Typography } from 'antd'; import { SettingOutlined, @@ -91,10 +91,16 @@ export default function MainLayout(props) { ? parseSecondsToDurationString(differenceInSeconds(new Date(), new Date(broadcaster.time))) : ''; const currentThumbnail = online ? ( - current thumbnail + current thumbnail ) : null; const statusIcon = online ? : ; const statusMessage = online ? `Online ${streamDurationString}` : 'Offline'; + const popoverTitle = Thumbnail; const statusIndicator = (
@@ -103,7 +109,7 @@ export default function MainLayout(props) {
); const statusIndicatorWithThumb = online ? ( - + {statusIndicator} ) : (