Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/mobile/src/features/files/FileTreeBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const FileTreeRow = memo(function FileTreeRow(props: {
});

export function FileTreeBrowser(props: {
readonly bottomContentPadding?: number;
readonly entries: ReadonlyArray<ProjectEntry>;
readonly error: string | null;
readonly isPending: boolean;
Expand Down Expand Up @@ -255,7 +256,10 @@ export function FileTreeBrowser(props: {
maxToRenderPerBatch={FILE_TREE_RENDER_BATCH_SIZE}
updateCellsBatchingPeriod={16}
windowSize={5}
contentContainerStyle={{ paddingTop: 8, paddingBottom: 8 }}
contentContainerStyle={{
paddingTop: 8,
paddingBottom: props.bottomContentPadding ?? 8,
}}
refreshControl={<RefreshControl refreshing={props.isPending} onRefresh={props.onRefresh} />}
renderItem={renderItem}
ListEmptyComponent={
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ export function ThreadFilesTreeScreen(props: ThreadFilesRouteScreenProps) {
</>
)}
<FileTreeBrowser
bottomContentPadding={
// Matches the h-28 toolbar fade: 28 spacing units at 4 points each.
isAndroid ? undefined : 112
}
entries={entriesData?.entries ?? []}
error={entriesQuery.error}
isPending={entriesQuery.isPending}
Expand Down
Loading