File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ function Indentation({ depth }: { depth: number }) {
8282 if ( depth <= 0 ) return null ;
8383
8484 return new Array ( depth ) . fill ( false ) . map ( ( _ , idx : number ) => {
85- return < div key = { idx } className = { cn ( "w-4" ) } > </ div > ;
85+ return < div key = { idx } className = { cn ( "w-4 flex-shrink-0 " ) } > </ div > ;
8686 } ) ;
8787}
8888
@@ -104,7 +104,7 @@ function CollapsedButton({
104104 ) }
105105 </ div >
106106 ) : (
107- < div className = "w-4" > </ div >
107+ < div className = "w-4 flex-shrink-0 " > </ div >
108108 ) ;
109109}
110110
@@ -212,7 +212,12 @@ function renderList<T>(props: ListViewRendererProps<T>): React.ReactElement {
212212 ) }
213213
214214 { item . icon && (
215- < item . icon className = { cn ( "w-4 h-4 mr-1" , item . iconColor ) } />
215+ < item . icon
216+ className = { cn (
217+ "w-4 h-4 mr-1 flex-shrink-0" ,
218+ item . iconColor
219+ ) }
220+ />
216221 ) }
217222 < div className = "text-xs" >
218223 < Highlight text = { item . name } highlight = { highlight } />
You can’t perform that action at this time.
0 commit comments