Skip to content

Commit 2a6af06

Browse files
authored
Merge pull request #1056 from objectstack-ai/copilot/update-sidebar-pin-icons-hover
2 parents 882cd7c + a76ce1f commit 2a6af06

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ The `FlowDesigner` is a canvas-based flow editor that bridges the gap between th
11121112
> Platform-level sidebar, navigation, and grid/table UX improvements (Issue #XX).
11131113
11141114
**Sidebar Navigation:**
1115-
- [x] Pin icons show-on-hover: `SidebarMenuAction` in `NavigationRenderer` now uses `showOnHover={!item.pinned}` — unpinned items show pin icon only on hover; pinned items always show unpin icon. Applied to both `action` and leaf navigation item types.
1115+
- [x] Pin icons show-on-hover: `SidebarMenuAction` in `NavigationRenderer` now uses `showOnHover` (always true) — all pin/unpin icons only appear on hover for a cleaner sidebar. Applied to both `action` and leaf navigation item types.
11161116
- [x] Search placeholder contrast: Search icon in AppSidebar improved from `opacity-50``opacity-70` for better readability.
11171117
- [x] Recent section position: Recent items section moved above Record Favorites in AppSidebar for quicker access to recently visited items.
11181118
- [x] Favorites section: Already hides automatically when no pinned items exist (verified).

packages/layout/src/NavigationRenderer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ function NavigationItemRenderer({
449449
</SidebarMenuButton>
450450
{enablePinning && onPinToggle && (
451451
<SidebarMenuAction
452-
showOnHover={!item.pinned}
452+
showOnHover
453453
onClick={() => onPinToggle(item.id, !item.pinned)}
454454
aria-label={item.pinned ? `Unpin ${resolveLabel(item.label, tProp)}` : `Pin ${resolveLabel(item.label, tProp)}`}
455455
>
@@ -502,7 +502,7 @@ function NavigationItemRenderer({
502502
</SidebarMenuButton>
503503
{enablePinning && onPinToggle && (
504504
<SidebarMenuAction
505-
showOnHover={!item.pinned}
505+
showOnHover
506506
onClick={() => onPinToggle(item.id, !item.pinned)}
507507
aria-label={item.pinned ? `Unpin ${itemLabel}` : `Pin ${itemLabel}`}
508508
>

0 commit comments

Comments
 (0)