From bd25b7f3b7efb98b19daa37751aab3e4a0315d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 2 Aug 2022 16:05:36 +0200 Subject: [PATCH] Improve look of toolbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/video-grid/VideoTile.jsx | 29 +++++++------------ src/video-grid/VideoTile.module.css | 45 +++++++++++++++-------------- 2 files changed, 34 insertions(+), 40 deletions(-) diff --git a/src/video-grid/VideoTile.jsx b/src/video-grid/VideoTile.jsx index f6103e1..c1f842a 100644 --- a/src/video-grid/VideoTile.jsx +++ b/src/video-grid/VideoTile.jsx @@ -54,6 +54,15 @@ export const VideoTile = forwardRef( ref={ref} {...rest} > + {showOptions && ( +
+ +
+ )} {(videoMuted || noVideo) && ( <>
@@ -66,30 +75,14 @@ export const VideoTile = forwardRef(
) : ( (showName || audioMuted || (videoMuted && !noVideo)) && ( -
+
{audioMuted && !(videoMuted && !noVideo) && } {videoMuted && !noVideo && } {showName && {name}}
) )} - {showOptions && ( -
- -
- )} +