From 3b696cfa9ad3ab085ad30d1149b5110d5204b438 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 23 Apr 2021 12:25:15 -0700 Subject: [PATCH] fix: Page reloads in Firefox when clicking some menu items (#2060) * fix: Some context menu items result in page reload in Firefox closes #1877 * fix: Display of sidebar link actions on hover --- .../Sidebar/components/SidebarLink.js | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/app/components/Sidebar/components/SidebarLink.js b/app/components/Sidebar/components/SidebarLink.js index d9628507..f0d4e60c 100644 --- a/app/components/Sidebar/components/SidebarLink.js +++ b/app/components/Sidebar/components/SidebarLink.js @@ -66,22 +66,24 @@ function SidebarLink({ }; return ( - - {icon && {icon}} - + <> + + {icon && {icon}} + + {menu && {menu}} - + ); } @@ -109,6 +111,8 @@ const Actions = styled(EventBoundary)` } &:hover { + display: inline-flex; + svg { opacity: 0.75; } @@ -145,9 +149,8 @@ const Link = styled(NavLink)` background: ${(props) => props.theme.black05}; } - &:hover, - &:active { - > ${Actions} { + &:hover + ${Actions}, + &:active + ${Actions} { display: inline-flex; svg {