about summary refs log tree commit diff
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-10-12 21:15:19 +0100
committerGitHub <noreply@github.com>2023-10-12 13:15:19 -0700
commit4431cfe2d2971577e9c0a4fa4ed83f0c52fb7540 (patch)
treeb012b84a72c7c4c6bc4cfbcb545ff16a7fcb59e4
parent997918547c7b9eaeecb0cb65e9360796e6777eb9 (diff)
downloadvoidsky-4431cfe2d2971577e9c0a4fa4ed83f0c52fb7540.tar.zst
Fix crash when scrolling down on the web (#1684)
-rw-r--r--src/view/com/util/load-latest/LoadLatestBtn.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/view/com/util/load-latest/LoadLatestBtn.tsx b/src/view/com/util/load-latest/LoadLatestBtn.tsx
index 095ebea44..57c3baa5b 100644
--- a/src/view/com/util/load-latest/LoadLatestBtn.tsx
+++ b/src/view/com/util/load-latest/LoadLatestBtn.tsx
@@ -74,14 +74,12 @@ const styles = StyleSheet.create({
   loadLatestTablet: {
     // @ts-ignore web only
     left: '50vw',
-    // @ts-ignore web only -prf
-    transform: 'translateX(-282px)',
+    transform: [{translateX: -282}],
   },
   loadLatestDesktop: {
     // @ts-ignore web only
     left: '50vw',
-    // @ts-ignore web only -prf
-    transform: 'translateX(-382px)',
+    transform: [{translateX: -382}],
   },
   indicator: {
     position: 'absolute',