From 2cd80bf2afc2527c9bfd076752efba6a5c8e8380 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Fri, 15 Jan 2021 17:32:39 -0500 Subject: [PATCH] landscape: sidebar updated to latest --- .../landscape/components/GroupSwitcher.tsx | 14 +++++----- .../landscape/components/Sidebar/Sidebar.tsx | 15 ----------- .../components/Sidebar/SidebarListHeader.tsx | 27 +++++++++++++------ 3 files changed, 25 insertions(+), 31 deletions(-) diff --git a/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx b/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx index 47ac1f19c6..f5e373d270 100644 --- a/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx +++ b/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx @@ -81,12 +81,11 @@ export function GroupSwitcher(props: { const title = getTitleFromWorkspace(associations, workspace); const navTo = (to: string) => `${props.baseUrl}${to}`; return ( - + - + } > - - - {title} - + + + {title} - + {(workspace.type === "group") && ( <> {isAdmin && ( diff --git a/pkg/interface/src/views/landscape/components/Sidebar/Sidebar.tsx b/pkg/interface/src/views/landscape/components/Sidebar/Sidebar.tsx index 07b96e02a2..1fec33daa6 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/Sidebar.tsx +++ b/pkg/interface/src/views/landscape/components/Sidebar/Sidebar.tsx @@ -48,20 +48,6 @@ interface SidebarProps { workspace: Workspace; } -// Magic spacer that because firefox doesn't correctly calculate -// position: sticky on a flex child -// remove when https://bugzilla.mozilla.org/show_bug.cgi?id=1488080 -// is fixed -const SidebarStickySpacer = styled(Box)` - height: 0px; - flex-grow: 1; - @-moz-document url-prefix() { - & { - height: ${p => p.theme.space[6] }px; - } - } -`; - export function Sidebar(props: SidebarProps) { const { invites, api, associations, selected, apps, workspace } = props; const groupPath = getGroupFromWorkspace(workspace); @@ -118,7 +104,6 @@ export function Sidebar(props: SidebarProps) { apps={props.apps} baseUrl={props.baseUrl} /> - @@ -51,12 +56,18 @@ export function SidebarListHeader(props: { - + + + + - + ); }