diff --git a/src/renderer/src/styles/app.css b/src/renderer/src/styles/app.css index bdd8cf5..33f16ce 100644 --- a/src/renderer/src/styles/app.css +++ b/src/renderer/src/styles/app.css @@ -591,6 +591,7 @@ textarea:focus-visible { gap: 10px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); + position: relative; } .canvas-toolbar .spacer { @@ -615,6 +616,11 @@ textarea:focus-visible { flex-direction: column; align-items: center; gap: 2px; + /* 相对整个工具栏绝对居中,不受左右两区宽度差影响 */ + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); } .flow-name {