Skip to content

Commit

Permalink
fix: AppNav scrollbar (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-shorpo authored Feb 18, 2024
1 parent dba8a43 commit 9bb5c80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/app/src/AppNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -917,11 +917,9 @@ export default function AppNav({ fixed = false }: { fixed?: boolean }) {
<AuthLoadingBlocker />
{fixed && <div style={{ width: navWidth, minWidth: navWidth }}></div>}
<ScrollArea
type="scroll"
type="hover"
scrollbarSize={8}
style={{
minWidth: navWidth,
width: navWidth,
maxHeight: '100vh',
height: '100%',
...(fixed
Expand All @@ -933,7 +931,7 @@ export default function AppNav({ fixed = false }: { fixed?: boolean }) {
}}
className="border-end border-dark d-flex flex-column justify-content-between"
>
<div>
<div style={{ width: navWidth }}>
<div className="p-3 d-flex flex-wrap justify-content-between align-items-center">
<Link href="/search" className="text-decoration-none">
{isCollapsed ? (
Expand Down Expand Up @@ -1326,7 +1324,7 @@ export default function AppNav({ fixed = false }: { fixed?: boolean }) {
</div>
{!isCollapsed && (
<>
<div className="px-3 mb-2 mt-4">
<div style={{ width: navWidth }} className="px-3 mb-2 mt-4">
<div className="my-3 bg-hdx-dark rounded p-2 text-center">
<span className="text-slate-300 fs-8">
Ready to use HyperDX Cloud?
Expand Down
2 changes: 2 additions & 0 deletions packages/app/styles/AppNav.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
color: $slate-400;
font-size: 12px;
margin: 8px 16px;
overflow: hidden;
text-overflow: ellipsis;
}

.listLinkActive {
Expand Down

0 comments on commit 9bb5c80

Please sign in to comment.