From b6286e1abd9769a78dcea307cc85378d945ed0e2 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Mon, 2 Nov 2020 16:36:43 -0500 Subject: [PATCH] landscape: flex-shrink group title in dropdown Instead of using a maxWidth in pixels, we flexbox to truncate the title. --- pkg/interface/src/views/components/Dropdown.tsx | 4 ++-- .../views/landscape/components/GroupSwitcher.tsx | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/interface/src/views/components/Dropdown.tsx b/pkg/interface/src/views/components/Dropdown.tsx index a86aed55d..e113ae50a 100644 --- a/pkg/interface/src/views/components/Dropdown.tsx +++ b/pkg/interface/src/views/components/Dropdown.tsx @@ -111,8 +111,8 @@ export function Dropdown(props: DropdownProps) { }); return ( - - + + {children} {open && ( diff --git a/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx b/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx index 20b896708..295515dc1 100644 --- a/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx +++ b/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx @@ -165,24 +165,24 @@ export function GroupSwitcher(props: { } > - - - {title} + + + {title} + - - + {workspace.type === "group" && ( <> - + - +