瀏覽代碼

style:修改当前位置图标动画不准确bug

zhouyuhao 1 年之前
父節點
當前提交
ff0307be10
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/views/Tracking/src/components/TrackingDetail/src/components/MapView.vue

+ 5 - 5
src/views/Tracking/src/components/TrackingDetail/src/components/MapView.vue

@@ -605,12 +605,12 @@ onUnmounted(() => {
       position: absolute;
       top: 50%;
       left: 50%;
-      transform: translate(-50%, -50%);
+      transform: translate(-12px, -12px);
       display: flex;
       justify-content: center;
       align-items: center;
-      width: 24px;
-      height: 24px;
+      width: 23px;
+      height: 23px;
       padding-bottom: 2px;
       padding-left: 1px;
       color: white;
@@ -642,12 +642,12 @@ onUnmounted(() => {
     }
 
     50% {
-      transform: scale(1.5); /* 从 18px 扩展到 24px (18 * 1.33 = 24) */
+      transform: scale(1.5);
       opacity: 0.7;
     }
 
     100% {
-      transform: scale(2); /* 从 18px 扩展到 30px (18 * 1.67 ≈ 30) */
+      transform: scale(2);
       opacity: 0.2;
     }
   }