Преглед на файлове

fix: Bug 369 新手引导step3的方框有点过于贴边了

陈文艺 преди 3 дни
родител
ревизия
b9f85bf139
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Lanu/Views/Room/LNRoomOrderGuideView.swift

+ 2 - 2
Lanu/Views/Room/LNRoomOrderGuideView.swift

@@ -39,7 +39,7 @@ class LNRoomOrderGuideView: UIView {
             case .demand:
                 .init(top: -8, left: -4, bottom: -8, right: -4)
             case .playmate:
-                .init(top: 0, left: -4, bottom: 0, right: -4)
+                .init(top: -16, left: -4, bottom: -16, right: -4)
             case .order:
                 .init(top: -2, left: -2, bottom: -2, right: -2)
             }
@@ -285,7 +285,7 @@ private extension LNRoomOrderGuideView {
 
         let isCardAbove = cardFrame.maxY <= focusRect.minY
         let dotCenter = CGPoint(
-            x: focusRect.midX,
+            x: currentStep == .demand ? focusRect.maxX - 42 : focusRect.midX,
             y: isCardAbove ? focusRect.minY - 7.5 : focusRect.maxY + 7.5
         )
         dotView.bounds = CGRect(x: 0, y: 0, width: 15, height: 15)