about summary refs log tree commit diff
path: root/src/view/com/util/List.web.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-08 21:44:49 +0100
committerGitHub <noreply@github.com>2024-05-08 21:44:49 +0100
commit701e508a1a5a99389242282a82973a3015070509 (patch)
treed438953b9d44c14fbf9f176cfa16aaab328fcc67 /src/view/com/util/List.web.tsx
parent750a5c899b31fec215064836be548aa71e83c82d (diff)
downloadvoidsky-701e508a1a5a99389242282a82973a3015070509.tar.zst
add sideborders prop (#3920)
Diffstat (limited to 'src/view/com/util/List.web.tsx')
-rw-r--r--src/view/com/util/List.web.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/util/List.web.tsx b/src/view/com/util/List.web.tsx
index b6ecf02ec..a64f7acf3 100644
--- a/src/view/com/util/List.web.tsx
+++ b/src/view/com/util/List.web.tsx
@@ -23,6 +23,7 @@ export type ListProps<ItemT> = Omit<
   onItemSeen?: (item: ItemT) => void
   desktopFixedHeight: any // TODO: Better types.
   containWeb?: boolean
+  sideBorders?: boolean
 }
 export type ListRef = React.MutableRefObject<any | null> // TODO: Better types.
 
@@ -53,6 +54,7 @@ function ListImpl<ItemT>(
     renderItem,
     extraData,
     style,
+    sideBorders = true,
     ...props
   }: ListProps<ItemT>,
   ref: React.Ref<ListMethods>,
@@ -308,7 +310,7 @@ function ListImpl<ItemT>(
       <View
         ref={containerRef}
         style={[
-          !isMobile && styles.sideBorders,
+          !isMobile && sideBorders && styles.sideBorders,
           contentContainerStyle,
           desktopFixedHeight ? styles.minHeightViewport : null,
           pal.border,