feat(image-annotate): v1.2.9 图层 PS 快捷键 + 顶栏会话组左移

- 图层快捷键(PS 同款,e.code 匹配防中文输入法吞键):
  Ctrl+]/[ 上/下移一层、Ctrl+Shift+]/[ 置顶/置底、Alt+]/[ 向上/向下选层
- Delete 删除选中的位图图层(原图锁定除外)
- moveLayer 无选中时 toast 提示,不再无声失败
- 顶栏「新建/覆盖/退出」移到最左会话组;右侧只留 输出+导出,下载改文案「导出」
- [ / ] 笔刷大小同时匹配 e.code,中文输入法下不再失灵
- __debug().shapes 补 z 字段;harness 新增 6 项断言(113 项全绿)
This commit is contained in:
qiqi committed 2026-11-04 22:48:12 +08:00
1 parent e1465b9d68
commit 9d923aed26
9 files changed
+255 -88

No files matched your search

+10
View File
@@ -1487,6 +1487,7 @@
@media (max-width: 900px) {
.iwb-opt-hint, .iwb-editor-optionbar-tip { display: none; }
.iwb-editor-session .iwb-editor-btn-cancel,
.iwb-editor-export-actions .iwb-editor-btn-cancel { display: none; }
}
@@ -1586,3 +1587,12 @@
display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.iwb-opt-selcmd:hover { background: #45475a; }
/* ================================================================
v1.2.9:顶栏「新建/覆盖/退出」移到最左(用户裁定 2026-11-04)
布局:⟨新建·覆盖·退出⟩ 标题 | 撤销·重做·还原 | 顺序·视图 | …… | 输出·导出
会话组不设 order(默认 0 且是 header 第一个子元素)→ 与标题同序时按 DOM 排最前
================================================================ */
.iwb-editor-header > .iwb-editor-session { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.iwb-editor-header > .iwb-editor-session .iwb-editor-btn { padding: 6px 10px; font-size: 11px; min-width: 56px; white-space: nowrap; }
.iwb-editor-header > .iwb-editor-session .iwb-editor-btn-download { min-width: 72px; }