-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c0a619
commit 05da3d3
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
frontend/src/layout/navigation-3000/sidepanel/SidePanel.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.SidePanel3000 { | ||
flex: 0 0 3rem; | ||
border-left: 1px solid transparent; // This is just for sizing, the visible border is on the content | ||
box-sizing: content-box; | ||
z-index: var(--z-main-nav); | ||
|
||
.LemonButton { | ||
min-height: 2.25rem !important; // Reduce minimum height | ||
} | ||
} | ||
|
||
.SidePanel3000__content { | ||
position: fixed; | ||
top: 0; | ||
right: 0; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
height: 100vh; | ||
width: 3rem; | ||
border-left-width: 1px; | ||
background: var(--accent-3000); | ||
overflow-y: auto; | ||
} |
19 changes: 19 additions & 0 deletions
19
frontend/src/layout/navigation-3000/sidepanel/SidePanel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { LemonButton } from '@posthog/lemon-ui' | ||
import './SidePanel.scss' | ||
import { IconComment, IconNotebook } from 'lib/lemon-ui/icons' | ||
|
||
export function SidePanel(): JSX.Element { | ||
return ( | ||
<nav className="SidePanel3000"> | ||
<div className="SidePanel3000__content"> | ||
<div className="SidePanel3000__top"> | ||
<div className="rotate-90 flex items-center gap-2 px-2"> | ||
<LemonButton icon={<IconNotebook className="rotate-270" />}>Notebooks</LemonButton> | ||
<LemonButton icon={<IconComment className="rotate-270" />}>Feedback</LemonButton> | ||
</div> | ||
</div> | ||
<div className="SidePanel3000__bottom"></div> | ||
</div> | ||
</nav> | ||
) | ||
} |