feat(image-annotate): 1.2.8 工具栏移至画布底部悬浮(Figma 风格) + 修 canvas-wrap 可编程滚动导致画布跳位(overflow:clip) + computeFit 预留工具条高度 + 工具条上滚轮不缩放
This commit is contained in:
1 parent
a1c3a40f17
commit
e1465b9d68
8 files changed
+120
-80
No files matched your search
@@ -433,6 +433,7 @@
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
overflow: hidden; /* 裁剪框允许显示在图片边界外;编辑区仍由模态层裁切 */
|
||||
overflow: clip; /* v1.2.8:hidden 仍可被编程滚动(点击底部工具栏会触发 scrollIntoView 把画布滚跑),clip 彻底禁止滚动 */
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
@@ -1404,19 +1405,30 @@
|
||||
.iwb-editor-btn-download { background: #1a7f37 !important; color: #fff !important; }
|
||||
.iwb-editor-btn-download:hover { background: #15803d !important; }
|
||||
|
||||
/* ---- 竖工具栏:真正固定在左侧,给 main 留出 56px ---- */
|
||||
.iwb-editor-header > .iwb-editor-tools {
|
||||
position: fixed !important; left: 8px !important; top: 112px !important;
|
||||
width: 40px !important; max-height: calc(100vh - 128px);
|
||||
flex-direction: column; padding: 5px !important; border-radius: 10px;
|
||||
overflow-y: auto; overflow-x: hidden; scrollbar-width: none; z-index: 50;
|
||||
/* ---- v1.2.8:底部浮动工具栏(Figma 风格,横排悬浮在画布底部居中) ----
|
||||
工具栏已从 header 移进 canvas-wrap,只占画布区域宽度,不挤压左右面板;
|
||||
bottom 距容器 14px,配合 computeFit() 预留的底部空间,图片不会被压住。 */
|
||||
.iwb-editor-canvas-wrap > .iwb-editor-tools {
|
||||
position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
|
||||
display: flex; flex-direction: row; align-items: center; gap: 2px;
|
||||
padding: 5px 8px; border-radius: 14px;
|
||||
background: rgba(24, 24, 37, 0.94);
|
||||
border: 1px solid #313244;
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
|
||||
-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
|
||||
z-index: 40;
|
||||
max-width: calc(100% - 28px);
|
||||
overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
|
||||
}
|
||||
.iwb-editor-header > .iwb-editor-tools::-webkit-scrollbar { display: none; }
|
||||
.iwb-editor-header > .iwb-editor-tools .iwb-editor-tool,
|
||||
.iwb-editor-header > .iwb-editor-tools .iwb-editor-action { width: 30px !important; height: 30px !important; min-width: 30px; flex: 0 0 auto; }
|
||||
.iwb-editor-header > .iwb-editor-tools .iwb-editor-divider { width: 22px; height: 1px; margin: 3px 0; flex: 0 0 auto; }
|
||||
.iwb-editor-header > .iwb-editor-tools .iwb-editor-fill-btn { width: 30px !important; padding: 3px 0 !important; font-size: 10px; writing-mode: vertical-rl; }
|
||||
.iwb-editor-main { padding-left: 56px; }
|
||||
.iwb-editor-canvas-wrap > .iwb-editor-tools::-webkit-scrollbar { display: none; }
|
||||
.iwb-editor-canvas-wrap > .iwb-editor-tools .iwb-editor-tool,
|
||||
.iwb-editor-canvas-wrap > .iwb-editor-tools .iwb-editor-action {
|
||||
width: 32px !important; height: 32px !important; min-width: 32px; flex: 0 0 auto; border-radius: 9px;
|
||||
}
|
||||
.iwb-editor-canvas-wrap > .iwb-editor-tools .iwb-editor-divider {
|
||||
width: 1px; height: 20px; margin: 0 5px; flex: 0 0 auto; background: #45475a;
|
||||
}
|
||||
.iwb-editor-main { padding-left: 0; }
|
||||
.iwb-editor-main > .iwb-editor-layer-panel { flex: 0 0 260px !important; min-width: 260px !important; width: 260px !important; }
|
||||
.iwb-editor-left { flex: 0 0 220px !important; min-width: 220px !important; width: 220px !important; }
|
||||
.iwb-editor-overlay.panels-collapsed .iwb-editor-layer-panel,
|
||||
|
||||
Reference in new issue
Block a user