From 163c2d25c17d70b19cfd7e12938ddd4bc973d573 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 8 Dec 2023 00:48:59 +0000 Subject: [PATCH] Fix borked scroll animation --- bskyweb/templates/base.html | 1 - src/view/shell/desktop/RightNav.tsx | 3 ++- web/index.html | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index 55c7c9fd86..e6a9f4c404 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -33,7 +33,6 @@ } html { - scroll-behavior: smooth; /* Prevent text size change on orientation change https://gist.github.com/tfausak/2222823#file-ios-8-web-app-html-L138 */ -webkit-text-size-adjust: 100%; height: calc(100% + env(safe-area-inset-top)); diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index 7e2f85718b..d331344bcc 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -172,7 +172,8 @@ function InviteCodes() { const styles = StyleSheet.create({ rightNav: { - position: 'absolute', + // @ts-ignore web only + position: 'fixed', // @ts-ignore web only left: 'calc(50vw + 320px)', width: 304, diff --git a/web/index.html b/web/index.html index 18b985bff5..54121a96ea 100644 --- a/web/index.html +++ b/web/index.html @@ -37,7 +37,6 @@ } html { - scroll-behavior: smooth; /* Prevent text size change on orientation change https://gist.github.com/tfausak/2222823#file-ios-8-web-app-html-L138 */ -webkit-text-size-adjust: 100%; height: calc(100% + env(safe-area-inset-top));