11import { useMemo , useState } from 'react' ;
22import { Pressable , View } from 'react-native' ;
33
4- import { Label } from '~/common/styleguide' ;
4+ import { P } from '~/common/styleguide' ;
55import { FileIcon , FolderIcon , WarningBlockquote } from '~/components/Icons' ;
66import Tooltip from '~/components/Tooltip' ;
77import { getFileWarning } from '~/util/codeBrowser' ;
@@ -28,7 +28,7 @@ export default function CodeBrowserFileRow({
2828 const Icon = useMemo ( ( ) => ( isDirectory ? FolderIcon : FileIcon ) , [ isDirectory ] ) ;
2929
3030 const rowStyle = [
31- tw `flex flex-row items-center gap-1.5 px-3 py-1 last:mb-20` ,
31+ tw `flex flex-row items-center gap-1.5 px-3 py-[3px] last:mb-20` ,
3232 { paddingLeft : 12 + depth * 8 } ,
3333 ] ;
3434
@@ -41,15 +41,15 @@ export default function CodeBrowserFileRow({
4141 isDirectory && tw `text-tertiary dark:text-accented` ,
4242 ] }
4343 />
44- < Label
44+ < P
4545 style = { [
46- tw `font-mono select-none` ,
47- isDirectory && tw `text-palette-gray5 dark:text-palette-gray4` ,
46+ tw `font-mono select-none text-[12px] font-light tracking-normal ` ,
47+ isDirectory && tw `font-extralight text-palette-gray5 dark:text-palette-gray4` ,
4848 isActive && tw `text-primary-darker dark:text-primary` ,
4949 { wordBreak : 'break-word' } ,
5050 ] } >
5151 { label }
52- </ Label >
52+ </ P >
5353 { warning && (
5454 < Tooltip
5555 trigger = {
0 commit comments