Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Sidebar导航项已Pin状态下图钉图标过多,统一hover时显示 #1055

Closed

Description

@hotlong

背景

用户反馈:侧边栏导航项右侧的小图钉太多,视觉上显得非常拥挤(见截图)。目前所有已Pin项都会一直显示“取消Pin”图标。

侧边栏导航拥挤问题

问题代码

  • NavigationRenderer.tsx 的 pin 交互逻辑导致所有已Pin项一直显示图钉(PinOff),造成界面不美观。

方案(A):全部图钉仅在hover时显示

  • 调整 SidebarMenuAction 的 showOnHover 属性,让所有pin/unpin按钮都只在hover时显示,无论当前项是否已Pin。
  • 用户依然可以通过Favorites顶部区域区分已Pin项。

期望效果

  • 侧边栏更加简洁,用户hover再决定Pin/Unpin。
  • Favorites区仍然展示已Pin项。

截图

侧边栏导航拥挤问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions