@@ -352,6 +352,11 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
352352 const basePaddingLeft = 4 ; // matches Tailwind px-1 for consistent baseline spacing
353353 const rowPaddingLeft = basePaddingLeft + Math . max ( level , 0 ) * safeIndent ;
354354 const snippetPaddingLeft = rowPaddingLeft + 28 ;
355+ const snippetAccentPadding = 8 ;
356+ const snippetAccentWidth = 3 ;
357+ const snippetMarginLeft = Math . max ( snippetPaddingLeft - snippetAccentPadding , 0 ) ;
358+ const snippetAccentColor = 'rgb(var(--color-accent) / 0.45)' ;
359+ const snippetBackgroundColor = 'rgb(var(--color-background))' ;
355360
356361 return (
357362 < li
@@ -513,7 +518,15 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
513518 { ! isFolder && searchTerm . trim ( ) && node . searchSnippet && (
514519 < div
515520 className = "text-[11px] text-text-secondary leading-snug whitespace-pre-wrap break-words pr-3"
516- style = { { paddingLeft : `${ snippetPaddingLeft } px` } }
521+ style = { {
522+ marginLeft : `${ snippetMarginLeft } px` ,
523+ paddingLeft : `${ snippetAccentPadding } px` ,
524+ borderLeftWidth : `${ snippetAccentWidth } px` ,
525+ borderLeftStyle : 'solid' ,
526+ borderLeftColor : snippetAccentColor ,
527+ backgroundColor : snippetBackgroundColor ,
528+ borderRadius : '4px' ,
529+ } }
517530 >
518531 { highlightMatches ( node . searchSnippet , searchTerm ) }
519532 </ div >
0 commit comments