From 3e53e2803baf4f1d0ad171cc4833f3972d8b0690 Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Tue, 8 Aug 2023 15:02:34 +0800 Subject: [PATCH] fab auto hide --- src/views/Action/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Action/index.js b/src/views/Action/index.js index b2b1059..1921365 100644 --- a/src/views/Action/index.js +++ b/src/views/Action/index.js @@ -67,8 +67,8 @@ export default function Action() { windowSize, width: fabWidth, height: fabWidth, - left: window.innerWidth - fabWidth, - top: window.innerHeight - fabWidth, + left: window.innerWidth - fabWidth - fabWidth / 2, + top: window.innerHeight - fabWidth - fabWidth / 2, }; return (