style: 流程名块相对工具栏整体绝对居中
This commit is contained in:
1 parent
f2eb449b87
commit
a7c74b85a0
1 file changed
+6
@@ -591,6 +591,7 @@ textarea:focus-visible {
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
border-bottom: 1px solid var(--line);
|
border-bottom: 1px solid var(--line);
|
||||||
background: rgba(255, 255, 255, 0.94);
|
background: rgba(255, 255, 255, 0.94);
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.canvas-toolbar .spacer {
|
.canvas-toolbar .spacer {
|
||||||
@@ -615,6 +616,11 @@ textarea:focus-visible {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
|
/* 相对整个工具栏绝对居中,不受左右两区宽度差影响 */
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.flow-name {
|
.flow-name {
|
||||||
|
|||||||
Reference in new issue
Block a user