Parcourir la source

Merge branch 'dev' into uat

liangan il y a 1 mois
Parent
commit
48c07e18b3
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/components/CustomerServiceFab.vue

+ 4 - 2
src/components/CustomerServiceFab.vue

@@ -31,9 +31,11 @@ function initDefaultPosition() {
   const windowWidth = sys.windowWidth || 375
   const windowHeight = sys.windowHeight || 667
   const sizePx = rpxToPx(80)
+  const rightInsetPx = rpxToPx(24)
+  const bottomInsetPx = rpxToPx(-86)
   const bottomOffsetPx = getBottomLimitPx()
-  x.value = Math.max(0, windowWidth - sizePx)
-  y.value = Math.max(0, windowHeight - sizePx - bottomOffsetPx)
+  x.value = Math.max(0, windowWidth - sizePx - rightInsetPx)
+  y.value = Math.max(0, windowHeight - sizePx - bottomOffsetPx - bottomInsetPx)
 }
 
 function clampPosition() {