Skip to content

fix: sidebar height inconsistency and favorites tooltip overlap#12280

Open
jakub961241 wants to merge 1 commit into1Panel-dev:dev-v2from
jakub961241:fix/ssl-sidebar-favorites-batch
Open

fix: sidebar height inconsistency and favorites tooltip overlap#12280
jakub961241 wants to merge 1 commit into1Panel-dev:dev-v2from
jakub961241:fix/ssl-sidebar-favorites-batch

Conversation

@jakub961241
Copy link

Summary

Two UI fixes in one PR:

1. Sidebar items have different heights (#12247)

Dropdown menu items (el-sub-menu) were taller than regular items because .el-sub-menu__title had margin-top: 7px while the outer .el-sub-menu had no margin. Regular .el-menu-item had margin: 7px 0.

Fix: Move margin to .el-sub-menu wrapper (margin: 7px 0), reset __title margin to 0.

2. File favorites tooltip blocks other items (#11922)

The full-path tooltip on favorites used placement="top", causing it to overlap adjacent items in the popover when scrolling past.

Fix: Changed to placement="right" so tooltips appear beside the item.

Changed files

  • frontend/src/layout/components/Sidebar/index.scss - Normalize sub-menu margins
  • frontend/src/views/host/file-management/index.vue - Tooltip placement top→right
fix: Normalize sidebar menu item heights and fix favorites tooltip overlap (#12247, #11922)

Two UI fixes:

1. Sidebar items have different heights (1Panel-dev#12247)
   - .el-sub-menu had margin-top:7px on __title but no margin on wrapper
   - Now .el-sub-menu has margin:7px 0 matching .el-menu-item
   - __title margin reset to 0 to prevent double spacing

2. File favorites tooltip blocks adjacent items (1Panel-dev#11922)
   - Tooltip placement changed from "top" to "right"
   - Prevents tooltip from overlapping other favorites when scrolling

Fixes 1Panel-dev#12247, 1Panel-dev#11922
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Mar 22, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign wanghe-fit2cloud for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant