diff --git a/desktop/src/features/sidebar/ui/AppSidebar.tsx b/desktop/src/features/sidebar/ui/AppSidebar.tsx index 8c2a8a8b9..24dd20f7b 100644 --- a/desktop/src/features/sidebar/ui/AppSidebar.tsx +++ b/desktop/src/features/sidebar/ui/AppSidebar.tsx @@ -229,15 +229,6 @@ export function AppSidebar({ React.useState(false); const showSidebarUpdateCard = canShowSidebarUpdateCard && !isSidebarUpdateCardDismissed; - const sidebarFooterCardCount = - (sidebarRelayConnectionCard.showSidebarRelayConnectionCard ? 1 : 0) + - (showSidebarUpdateCard ? 1 : 0); - const unreadBelowBottomClass = - sidebarFooterCardCount >= 2 - ? "bottom-56" - : sidebarFooterCardCount >= 1 - ? "bottom-44" - : "bottom-24"; const [isNewDmOpenInternal, setIsNewDmOpenInternal] = React.useState(false); const isNewDmOpen = isNewDmOpenProp ?? isNewDmOpenInternal; const setIsNewDmOpen = onNewDmOpenChange ?? setIsNewDmOpenInternal; @@ -776,64 +767,66 @@ export function AppSidebar({ ) : null} - {unreadBelowCount > 0 ? ( - - ) : null} - - - - {sidebarRelayConnectionCard.showSidebarRelayConnectionCard ? ( - - ) : null} - - {showSidebarUpdateCard ? ( - - setIsSidebarUpdateCardDismissed(true)} - /> - + + {unreadBelowCount > 0 ? ( + ) : null} - - - - - - + + + + {sidebarRelayConnectionCard.showSidebarRelayConnectionCard ? ( + + ) : null} + + {showSidebarUpdateCard ? ( + + setIsSidebarUpdateCardDismissed(true)} + /> + + ) : null} + + + + + + +