From ef94f10faebf489babee4efad2e8852e334e344f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 8 Nov 2025 16:50:28 -0500 Subject: [PATCH] fix: Account menu missing hover state (#10599) --- app/components/Sidebar/Shared.tsx | 1 + .../Sidebar/components/SidebarButton.tsx | 15 ++++++++------- app/scenes/Settings/components/GroupsTable.tsx | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/components/Sidebar/Shared.tsx b/app/components/Sidebar/Shared.tsx index d1443bad20..c2e50111f4 100644 --- a/app/components/Sidebar/Shared.tsx +++ b/app/components/Sidebar/Shared.tsx @@ -59,6 +59,7 @@ function SharedSidebar({ share }: Props) { image={ } + disabled={hideRootNode} onClick={ hideRootNode ? undefined diff --git a/app/components/Sidebar/components/SidebarButton.tsx b/app/components/Sidebar/components/SidebarButton.tsx index 3140429be5..3c3e185fc9 100644 --- a/app/components/Sidebar/components/SidebarButton.tsx +++ b/app/components/Sidebar/components/SidebarButton.tsx @@ -44,7 +44,6 @@ const SidebarButton = React.forwardRef( as="button" ref={ref} role="button" - disabled={!onClick} > {image} @@ -104,12 +103,14 @@ const Button = styled(Flex)<{ ${undraggableOnDesktop()} ${extraArea(4)} - &:not(:disabled):active, - &:not(:disabled):${hover}, - &:not(:disabled)[aria-expanded="true"] { - color: ${s("sidebarText")}; - background: ${s("sidebarActiveBackground")}; - cursor: var(--pointer); + &:not(:disabled) { + &:active, + &:${hover}, + &[aria-expanded="true"] { + color: ${s("sidebarText")}; + background: ${s("sidebarActiveBackground")}; + cursor: var(--pointer); + } } &:last-child { diff --git a/app/scenes/Settings/components/GroupsTable.tsx b/app/scenes/Settings/components/GroupsTable.tsx index 3bf348ce48..384a79e3f1 100644 --- a/app/scenes/Settings/components/GroupsTable.tsx +++ b/app/scenes/Settings/components/GroupsTable.tsx @@ -106,7 +106,7 @@ export function GroupsTable(props: Props) { ); }, - width: "1fr", + width: "1.5fr", sortable: false, }, {