File tree Expand file tree Collapse file tree 4 files changed +18
-7
lines changed
Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -315,19 +315,27 @@ export default function Page() {
315315 < SelectDialog
316316 defaultOpen
317317 title = "Select file"
318+ placeholder = "Search files"
319+ emptyMessage = "No files found"
318320 items = { local . file . search }
319321 key = { ( x ) => x }
320322 onOpenChange = { ( open ) => setStore ( "fileSelectOpen" , open ) }
321323 onSelect = { ( x ) => ( x ? local . file . open ( x , { pinned : true } ) : undefined ) }
322324 >
323325 { ( i ) => (
324- < div class = "w-full flex items-center justify-between" >
325- < div class = "flex items-center gap-x-2 text-text-muted grow min-w-0" >
326+ < div
327+ classList = { {
328+ "w-full flex items-center justify-between rounded-md" : true ,
329+ } }
330+ >
331+ < div class = "flex items-center gap-x-2 grow min-w-0" >
326332 < FileIcon node = { { path : i , type : "file" } } class = "shrink-0 size-4" />
327- < span class = "text-xs text-text whitespace-nowrap" > { getFilename ( i ) } </ span >
328- < span class = "text-xs text-text-muted/80 whitespace-nowrap overflow-hidden overflow-ellipsis truncate min-w-0" >
329- { getDirectory ( i ) }
330- </ span >
333+ < div class = "flex items-center text-14-regular" >
334+ < span class = "text-text-weak whitespace-nowrap overflow-hidden overflow-ellipsis truncate min-w-0" >
335+ { getDirectory ( i ) } /
336+ </ span >
337+ < span class = "text-text-strong whitespace-nowrap" > { getFilename ( i ) } </ span >
338+ </ div >
331339 </ div >
332340 < div class = "flex items-center gap-x-1 text-text-muted/40 shrink-0" > </ div >
333341 </ div >
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ const newIcons = {
134134 "plus-small" : `<path d="M9.99984 5.41699V10.0003M9.99984 10.0003V14.5837M9.99984 10.0003H5.4165M9.99984 10.0003H14.5832" stroke="currentColor" stroke-linecap="square"/>` ,
135135 "chevron-down" : `<path d="M6.6665 8.33325L9.99984 11.6666L13.3332 8.33325" stroke="currentColor" stroke-linecap="square"/>` ,
136136 "arrow-up" : `<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99991 2.24121L16.0921 8.33343L15.2083 9.21731L10.6249 4.63397V17.5001H9.37492V4.63398L4.7916 9.21731L3.90771 8.33343L9.99991 2.24121Z" fill="currentColor"/>` ,
137+ "check-small" : `<path d="M6.5 11.4412L8.97059 13.5L13.5 6.5" stroke="currentColor" stroke-linecap="square"/>` ,
137138}
138139
139140export interface IconProps extends ComponentProps < "svg" > {
Original file line number Diff line number Diff line change 8787 }
8888 [data-slot = "item-indicator" ] {
8989 margin-left : auto;
90+ width : 16px ;
91+ height : 16px ;
9092 }
9193 & : focus {
9294 outline : none;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export function Select<T>(props: SelectProps<T> & ButtonProps) {
5252 { props . label ? props . label ( itemProps . item . rawValue ) : ( itemProps . item . rawValue as string ) }
5353 </ Kobalte . ItemLabel >
5454 < Kobalte . ItemIndicator data-slot = "item-indicator" >
55- < Icon name = "checkmark " />
55+ < Icon name = "check-small" size = "small " />
5656 </ Kobalte . ItemIndicator >
5757 </ Kobalte . Item >
5858 ) }
You can’t perform that action at this time.
0 commit comments