@@ -352,6 +352,12 @@ 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 =
360+ 'color-mix(in srgb, rgb(var(--color-background)) 82%, rgb(var(--color-text-main)) 18%)' ;
355361
356362 return (
357363 < li
@@ -513,7 +519,15 @@ const DocumentTreeItem: React.FC<DocumentTreeItemProps> = (props) => {
513519 { ! isFolder && searchTerm . trim ( ) && node . searchSnippet && (
514520 < div
515521 className = "text-[11px] text-text-secondary leading-snug whitespace-pre-wrap break-words pr-3"
516- style = { { paddingLeft : `${ snippetPaddingLeft } px` } }
522+ style = { {
523+ marginLeft : `${ snippetMarginLeft } px` ,
524+ paddingLeft : `${ snippetAccentPadding } px` ,
525+ borderLeftWidth : `${ snippetAccentWidth } px` ,
526+ borderLeftStyle : 'solid' ,
527+ borderLeftColor : snippetAccentColor ,
528+ backgroundColor : snippetBackgroundColor ,
529+ borderRadius : '4px' ,
530+ } }
517531 >
518532 { highlightMatches ( node . searchSnippet , searchTerm ) }
519533 </ div >
0 commit comments