From b1dae5b9c2d33e107f27f64126f9df4a5cb9949b Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Wed, 20 Sep 2023 15:37:55 +0200 Subject: [PATCH] Show label even when there is only one mode, and fix hover tooltip --- src/components/ModeSelector.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/ModeSelector.tsx b/src/components/ModeSelector.tsx index 44888ad6..93a97e88 100644 --- a/src/components/ModeSelector.tsx +++ b/src/components/ModeSelector.tsx @@ -10,6 +10,9 @@ import { StatusDot, StatusDotWrapper } from "./StatusDot"; import { TooltipMenu } from "./TooltipMenu"; const IconWrapper = styled.div(({ theme }) => ({ + display: "inline-flex", + alignItems: "center", + gap: 6, height: 14, margin: "7px 7px", color: `${theme.color.defaultText}99`, @@ -57,7 +60,9 @@ export const ModeSelector = ({ hasChrome={false} placement="top" trigger="hover" - tooltip={} + tooltip={ + + } > {links ? ( @@ -66,7 +71,10 @@ export const ModeSelector = ({ ) : ( - {icon} + + {icon} + {selectedMode.name} + )} );