feat(sftp): 文件面板列头/排序、字体缩放与空白处右键菜单
- 列表头改为 sticky 并支持点击排序(名称/大小/修改时间/权限/用户/组,目录恒在前) - 时间显示改为 YYYY/M/D HH:MM,大小显示改为 30.7 KB 风格 - 新增字体缩放 0.8–1.8(A-/A+ 与 Ctrl+滚轮),行高字号联动并记忆到 localStorage - 行高/字号统一由 FilePanel.tsx 计算,经 CSS 变量下发,sftp.css 只消费变量 - 主进程新增 readdirDetailed + parseLongnameOwner,从 OpenSSH longname 解析真实的用户/组 - 列表空白处右键弹出菜单(行内右键仍走原菜单,两者不叠加) - 修复:antd 把 ant-dropdown-trigger 克隆到行元素上,旧规则以更高特异性顶掉了 .sftp-row 的 display:grid,导致列此前并未按网格对齐 - 4 语言词典补充列名与缩放键
This commit is contained in:
1 parent
5602949a4f
commit
6e7c9d5376
9 files changed
+394
-69
No files matched your search
@@ -129,6 +129,13 @@ const ssh: Record<string, string> = {
|
||||
'ssh.file.permColRead': '读',
|
||||
'ssh.file.permColWrite': '写',
|
||||
'ssh.file.permColExec': '执行',
|
||||
'ssh.file.colName': '名称',
|
||||
'ssh.file.colSize': '大小',
|
||||
'ssh.file.colModified': '修改时间',
|
||||
'ssh.file.colPerm': '权限',
|
||||
'ssh.file.colOwner': '用户/组',
|
||||
'ssh.file.zoomIn': '放大字体',
|
||||
'ssh.file.zoomOut': '缩小字体',
|
||||
|
||||
// 系统监控
|
||||
'ssh.monitor.collecting': '采集中…',
|
||||
|
||||
Reference in new issue
Block a user