Przeglądaj źródła

🐛 fix(navbar): 修复右侧按钮定位错误

- 修正右侧按钮的right计算方式,从menuButtonInfo.right改为menuButtonInfo.left
- 解决导航栏右侧按钮位置偏移问题
yourname 4 miesięcy temu
rodzic
commit
c6edd249f9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      mini/src/components/ui/navbar.tsx

+ 1 - 1
mini/src/components/ui/navbar.tsx

@@ -91,7 +91,7 @@ export const Navbar: React.FC<NavbarProps> = ({
           className="absolute top-0 bottom-0 flex items-center z-10"
           style={{
             height: NAVBAR_HEIGHT,
-            right: `${systemInfo.screenWidth - menuButtonInfo.right - 10}px`,
+            right: `${systemInfo.screenWidth - menuButtonInfo.left + 10}px`,
           }}
           onClick={onClickRight}
         >