Skip to content

Commit 3a66676

Browse files
Merge pull request #1343 from Shoaibdev7/fix/navigation-tooltip
Fix Navigation `Tooltip` Appearing Behind Other Components
2 parents 6ad6001 + 8b2e4d5 commit 3a66676

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/common/SidebarComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const SidebarContainer = styled.div<{ collapsed: boolean }>`
4343
overflow: hidden;
4444
position: fixed;
4545
height: 100vh;
46+
z-index: 1000;
4647
left: 0;
4748
top: 0;
4849
background: #f4f4f4;
@@ -296,7 +297,6 @@ const Tooltip = styled.div<{ visible: boolean; top: number; collapsed: boolean }
296297
opacity: ${(props) => (props.visible ? 1 : 0)};
297298
visibility: ${(props) => (props.visible ? 'visible' : 'hidden')};
298299
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
299-
z-index: 9999;
300300
white-space: nowrap;
301301
top: ${(props) => props.top}px;
302302
pointer-events: none;

src/people/main/Header.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ function Header() {
490490
width: '100%',
491491
height: 64,
492492
padding: '0 20px',
493-
background: headerBackground
493+
background: headerBackground,
494+
zIndex: 1001
494495
}}
495496
>
496497
<div

0 commit comments

Comments
 (0)