调整DockIndicator上区指示器位置,将其移至中心区域容器内部并设置正确的相对定位

This commit is contained in:
zqm
2025-11-14 09:12:53 +08:00
parent 0bc966d9d0
commit 0b8cf468a8

View File

@@ -256,12 +256,12 @@
fill="#636873"
fill-rule="evenodd"
clip-rule="evenodd"
d="M0 67 L58 67 L67 58 L67 0 L118 0 L118 58 L128 67 L185 67 L185 118 L128 118 L118 128 L118 185 L67 185 L67 128 L58 118 L0 118 Z" />
d="M0 82 L73 82 L82 73 L82 0 L133 0 L133 73 L143 82 L215 82 L215 133 L143 133 L133 143 L133 215 L82 215 L82 143 L73 133 L0 133 Z" />
<path
fill="#D5DCF0"
fill-rule="evenodd"
clip-rule="evenodd"
d="M1 68 L59 68 L68 59 L68 1 L117 1 L117 59 L127 68 L184 68 L184 117 L127 117 L117 127 L117 184 L68 184 L68 127 L59 117 L1 117 Z" />
d="M1 83 L74 83 L83 74 L83 1 L132 1 L132 74 L142 83 L214 83 L214 132 L142 132 L132 142 L132 214 L83 214 L83 142 L74 132 L1 132 Z" />
</svg>
<!-- 上区指示 -->
@@ -668,7 +668,7 @@ watch(activeDockZone, (newZone) => {
/* 上区指示器位于中心指示区上方指示器的上方4个像素处 */
.dock-top-area {
position: absolute;
top: -45px; /* 向上偏移确保距离中心指示区上方指示器上边缘4个像素 */
top: 46px; /* 向上偏移确保距离中心指示区上方指示器上边缘4个像素 */
left: 50%;
transform: translateX(-50%);
opacity: 0.7; /* 默认半透明 */