GeezerVison is showing github.com — fix(mobile): keep CSV headings below the iPad navigation bar (#42928) · pingdotgg/t3code@1c46229
File tree
Expand file treeCollapse file tree
Open diff view settings
apps/mobile/src/features/files
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: apps/mobile/src/features/files/DelimitedFilePreview.tsx +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,14 +3,15 @@ import { useGT } from "gt-react-native"; |
3 | 3 | import { ScrollView, View } from "react-native"; |
4 | 4 | import type { parseDelimitedPreview } from "@t3tools/shared/delimitedPreview"; |
5 | 5 | import { AppText as Text } from "../../components/ui/AppText"; |
| 6 | +import { NativeScrollView } from "../../native/NativeScrollViewMarker"; |
6 | 7 | import { FilePreviewNotice } from "./FilePreviewFeedback"; |
7 | 8 |
|
8 | 9 | export function DelimitedFilePreview(props: { |
9 | 10 | readonly table: ReturnType<typeof parseDelimitedPreview>; |
10 | 11 | }) { |
11 | 12 | const gt = useGT(); |
12 | 13 | return ( |
13 | | - <ScrollView className="flex-1"> |
| 14 | + <NativeScrollView className="flex-1" contentInsetAdjustmentBehavior="automatic"> |
14 | 15 | {props.table.truncated ? ( |
15 | 16 | <FilePreviewNotice> |
16 | 17 | {gt("Table limited to the first 100 rows and 30 columns. Source shows the rest.")} |
@@ -38,6 +39,6 @@ export function DelimitedFilePreview(props: { |
38 | 39 | ))} |
39 | 40 | </View> |
40 | 41 | </ScrollView> |
41 | | - </ScrollView> |
| 42 | + </NativeScrollView> |
42 | 43 | ); |
43 | 44 | } |