Pārlūkot izejas kodu

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

zhouyuhao 1 gadu atpakaļ
vecāks
revīzija
ff0307be10

+ 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;
     }
   }