From 6522ee9bbfb5a418c1caa828ab9751b2430e8fcc Mon Sep 17 00:00:00 2001
From: Hailey <me@haileyok.com>
Date: Wed, 22 May 2024 06:07:07 -0700
Subject: don't use `contentVisibility` on Firefox (#4164)

---
 src/view/com/util/List.web.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/view/com/util/List.web.tsx')

diff --git a/src/view/com/util/List.web.tsx b/src/view/com/util/List.web.tsx
index df097bafa..7f192686d 100644
--- a/src/view/com/util/List.web.tsx
+++ b/src/view/com/util/List.web.tsx
@@ -504,6 +504,7 @@ export const List = memo(React.forwardRef(ListImpl)) as <ItemT>(
 
 // https://stackoverflow.com/questions/7944460/detect-safari-browser
 const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)
+const isFirefox = /firefox|fxios/i.test(navigator.userAgent)
 
 const styles = StyleSheet.create({
   sideBorders: {
@@ -518,7 +519,7 @@ const styles = StyleSheet.create({
   },
   row: {
     // @ts-ignore web only
-    contentVisibility: isSafari ? '' : 'auto', // Safari support for this is buggy.
+    contentVisibility: isSafari || isFirefox ? '' : 'auto', // Safari support for this is buggy.
   },
   minHeightViewport: {
     // @ts-ignore web only
-- 
cgit 1.4.1

