diff --git a/src/Add-on/ShareView/ShareViewStyle.less b/src/Add-on/ShareView/ShareViewStyle.less index 08a9ab7e2..b8c3d16d0 100644 --- a/src/Add-on/ShareView/ShareViewStyle.less +++ b/src/Add-on/ShareView/ShareViewStyle.less @@ -8,6 +8,12 @@ --transitionTime: 0.22s; } +#FunctionUI { + // 禁止对字体大小进行自动缩放 + -webkit-text-size-adjust: none; + text-size-adjust: none; +} + .sp-loading-mask { z-index: -1; position: fixed; diff --git a/src/Add-on/ShareView/components/HideComponentsMenu/index.less b/src/Add-on/ShareView/components/HideComponentsMenu/index.less index 2ac05d5a8..f8e9f662b 100644 --- a/src/Add-on/ShareView/components/HideComponentsMenu/index.less +++ b/src/Add-on/ShareView/components/HideComponentsMenu/index.less @@ -1,9 +1,9 @@ .HideComponentsMenu { position: absolute; - left: 0; + left: 50%; bottom: 44px; background-color: var(--btn-background-color); - width: 100%; + width: 140px; box-sizing: border-box; margin: 0; padding: 0; @@ -11,7 +11,7 @@ border-radius: 4px; z-index: -1; visibility: hidden; - transform: translateY(-20px); + transform: translate(-50%, -20px); opacity: 0; transition: transform var(--transitionTime), opacity var(--transitionTime), visibility var(--transitionTime); pointer-events: none; @@ -47,7 +47,7 @@ &.open { opacity: 1; visibility: visible; - transform: translateY(0); + transform: translate(-50%, 0); pointer-events: all; } } diff --git a/src/Add-on/ShareView/components/ShareViewUI.tsx b/src/Add-on/ShareView/components/ShareViewUI.tsx index aeaa8f652..d6da16946 100644 --- a/src/Add-on/ShareView/components/ShareViewUI.tsx +++ b/src/Add-on/ShareView/components/ShareViewUI.tsx @@ -180,15 +180,21 @@ function ShareViewUI() // 显示门板 const showDoor = async () => { - await SwitchDoorOrDrawer(true, true); - shareViewStore.operations.showDoor = true; + if (!shareViewStore.operations.showDoor) + { + await SwitchDoorOrDrawer(true, true); + shareViewStore.operations.showDoor = true; + } }; /** 显示抽屉 */ const showDrawer = async () => { - await SwitchDoorOrDrawer(true, false); - shareViewStore.operations.showDrawer = true; + if (!shareViewStore.operations.showDrawer) + { + await SwitchDoorOrDrawer(true, false); + shareViewStore.operations.showDrawer = true; + } }; /** 还原之前的主题背景色 */