refactor: unify dropdown menu styles across components

- Removed redundant dropdown menu styles from various components and centralized them in a new `dropdown-menu.less` file.
- Updated components to use the unified styles, ensuring consistency in appearance and behavior across the application.

This change simplifies maintenance and enhances the visual coherence of dropdown menus.
This commit is contained in:
wizardchen
2026-03-16 20:13:30 +08:00
parent 452db9f5c3
commit f7ec47306c
11 changed files with 390 additions and 847 deletions
@@ -2160,66 +2160,7 @@ const handleUploadFinishedEvent = (event: Event) => {
</style>
<style lang="less">
// 更多操作弹窗样式
.card-more-popup {
z-index: 99 !important;
.t-popup__content {
padding: 6px 0 !important;
margin-top: 6px !important;
min-width: 140px;
border-radius: 6px !important;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !important;
border: 1px solid var(--td-component-stroke) !important;
}
}
.popup-menu {
display: flex;
flex-direction: column;
}
.popup-menu-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
cursor: pointer;
transition: all 0.2s ease;
color: var(--td-text-color-primary);
font-family: "PingFang SC";
font-size: 14px;
font-weight: 400;
line-height: 20px;
.menu-icon {
font-size: 16px;
flex-shrink: 0;
color: var(--td-text-color-placeholder);
transition: color 0.2s ease;
}
&:hover {
background: var(--td-bg-color-container-hover);
.menu-icon {
color: var(--td-text-color-primary);
}
}
&.delete {
color: var(--td-text-color-primary);
&:hover {
background: var(--td-error-color-light);
color: var(--td-error-color);
.menu-icon {
color: var(--td-error-color);
}
}
}
}
/* 下拉菜单样式已统一至 @/assets/dropdown-menu.less */
// 共享知识库卡片:详情触发(替代三点,用「查看详情」链接样式)
.shared-detail-trigger {