Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(files): browse ignored files and load folders on demand #11527

Mergedmaria-rcksmerged 3 commits intomain fromrefs/pull/11527/headmerged by maria-rcks View on GitHub

Showing 14 changed files with 59 additions and 32 deletions (loading 11).

x
0 of 14 viewed, 14 left
43 additions and 16 deletionsapps/mobile/src/features/files/FileTreeBrowser.tsxModified
View file
@@ -11,7 +11,6 @@
import { NATIVE_LIQUID_GLASS_SUPPORTED } from "../../native/native-glass";
import {
buildFileTree,
- defaultExpandedTreePaths,
flattenFileTree,
type FileTreeNode,
type VisibleFileTreeNode,
@@ -45,6 +44,7 @@
readonly item: VisibleFileTreeNode;
readonly selected: boolean;
readonly expanded: boolean;
+ readonly loaded: boolean;
readonly onPressDirectory: (path: string) => void;
readonly onPreviewFile?: (path: string) => void;
readonly onPressFile: (path: string) => void;
@@ -89,13 +89,15 @@
"min-w-0 flex-1 text-sm leading-normal",
props.selected
? "font-t3-bold text-foreground"
- : "font-t3-medium text-foreground-secondary",
+ : node.ignored
+ ? "font-t3-medium text-foreground-tertiary"
+ : "font-t3-medium text-foreground-secondary",
)}
numberOfLines={1}
{node.name}