fix: simplify knowledge action menus

Remove repeated document names from action labels, shorten the reparse label, and narrow knowledge menus to 220px while preserving other menu widths and viewport bounds. Keep object context on menu triggers and removal confirmations.

Validation: 72 focused and Electron layout tests, typecheck, lint, and diff checks passed.

Release note: 知识库操作菜单去掉重复文件名,将操作简写为重新解析,并收窄菜单宽度,减少换行。
This commit is contained in:
mesalogo
2026-09-27 13:11:09 +08:00
parent ceb275bdb8
commit 67dedc2ed2
9 changed files with 46 additions and 33 deletions
@@ -88,6 +88,8 @@ Conversation 的检索范围,返回对话并聚焦输入框。
没有分块时禁用分块入口。来源组的菜单提供任务及来源维护。菜单支持方向键、Home、End、
Escape 和焦点返回,展开不改变行高;空间不足时翻转方向或在菜单内滚动。
大小与分块数保持单行,窄窗口在表格内部横向滚动。
操作文案使用“打开来源 / 重新解析 / 同步 / 暂停 / 重试 / 移除来源”,不附带对象名称;更多操作按钮的可访问名称和移除确认框仍保留对象名称。
列表和预览的操作菜单宽度为 `220px`,小视口下收窄并保留左右各 `16px` 边距。
解析预览头部按返回、文档标题与库名及全局范围、维护菜单排列,地址仍可辨认。
正文、图片和详情使用共享结果组件;知识库的会话选择及添加图片工具仅在图片页显示,