perf: 悬浮按钮桌面和移动端使用不同样式

dev/full-email
LiaoYijun 5 months ago
parent edc1569a8c
commit f5499e1e76

@ -120,6 +120,8 @@ function AuthApp() {
) !== null ) !== null
const floatButtonLineEnd = isMobileApp ? 0 : 24 const floatButtonLineEnd = isMobileApp ? 0 : 24
const floatTrigger = isMobileApp ? 'click' : null
useEffect(() => { useEffect(() => {
if (needToLogin) { if (needToLogin) {
@ -147,7 +149,7 @@ function AuthApp() {
<ErrorBoundary> <ErrorBoundary>
<FloatButton.Group <FloatButton.Group
shape='square' shape='square'
trigger='click' trigger={floatTrigger}
style={{ style={{
insetInlineEnd: floatButtonLineEnd, insetInlineEnd: floatButtonLineEnd,
insetBlockEnd: floatButtonLineEnd, insetBlockEnd: floatButtonLineEnd,

Loading…
Cancel
Save