Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/auto-import-registry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import '@signozhq/badge';
import '@signozhq/button';
import '@signozhq/calendar';
import '@signozhq/callout';
import '@signozhq/checkbox';
import '@signozhq/design-tokens';
import '@signozhq/input';
import '@signozhq/popover';
Expand Down
12 changes: 12 additions & 0 deletions frontend/src/container/SideNav/NavItem/NavItem.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
.nav-item-active-marker {
background: #4e74f8;
}

.nav-item-data {
.nav-item-label {
color: var(--Vanilla-100, #fff);
}
}
}

&.disabled {
Expand Down Expand Up @@ -120,6 +126,12 @@
.nav-item-active-marker {
background: #4e74f8;
}

.nav-item-data {
.nav-item-label {
color: var(--bg-slate-500);
}
}
}

&:hover {
Expand Down
30 changes: 17 additions & 13 deletions frontend/src/container/SideNav/NavItem/NavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable jsx-a11y/click-events-have-key-events */
import './NavItem.styles.scss';

import { Tag } from 'antd';
import { Tag, Tooltip } from 'antd';
import cx from 'classnames';
import { Pin, PinOff } from 'lucide-react';

Expand Down Expand Up @@ -74,21 +74,25 @@ export default function NavItem({
)}

{onTogglePin && !isPinned && (
<Pin
size={12}
className="nav-item-pin-icon"
onClick={handleTogglePinClick}
color="var(--Vanilla-400, #c0c1c3)"
/>
<Tooltip title="Add to shortcuts" placement="right">
<Pin
size={12}
className="nav-item-pin-icon"
onClick={handleTogglePinClick}
color="var(--Vanilla-400, #c0c1c3)"
/>
</Tooltip>
)}

{onTogglePin && isPinned && (
<PinOff
size={12}
className="nav-item-pin-icon"
onClick={handleTogglePinClick}
color="var(--Vanilla-400, #c0c1c3)"
/>
<Tooltip title="Remove from shortcuts" placement="right">
<PinOff
size={12}
className="nav-item-pin-icon"
onClick={handleTogglePinClick}
color="var(--Vanilla-400, #c0c1c3)"
/>
</Tooltip>
)}
</div>
</div>
Expand Down
Loading
Loading