fix: try fix float bar inset bottom
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
555fc4cde9
commit
3110f953da
|
|
@ -60,8 +60,10 @@ export const MobileFloatBar = ({
|
|||
|
||||
useEffect(() => {
|
||||
if (isScrollDown) {
|
||||
const computedStyle = getComputedStyle(document.documentElement)
|
||||
const safeAreaBottom = computedStyle.getPropertyValue("--sab")
|
||||
animateController.start({
|
||||
translateY: "calc(100% + 40px + env(safe-area-inset-bottom))",
|
||||
translateY: `calc(100% + 40px + ${safeAreaBottom})`,
|
||||
transition: { type: "tween", duration: 0.1 },
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,12 @@ html,
|
|||
#shadow-html {
|
||||
--fo-font-family: "SN Pro", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
:root {
|
||||
--sat: env(safe-area-inset-top);
|
||||
--sar: env(safe-area-inset-right);
|
||||
--sab: env(safe-area-inset-bottom);
|
||||
--sal: env(safe-area-inset-left);
|
||||
}
|
||||
* {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue