File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,17 @@ const styles = stylex.create({
1111 treeItem : {
1212 position : 'relative' ,
1313 background : 'var(--vscode-sideBar-background)' ,
14+ '::before' : {
15+ content : '' ,
16+ display : 'block' ,
17+ position : 'absolute' ,
18+ top : '22px' ,
19+ bottom : 0 ,
20+ left : '13px' , // left 16px - translateX 3px
21+ width : '1px' ,
22+ backgroundColor : 'var(--vscode-tree-inactiveIndentGuidesStroke)' ,
23+ transition : '0.1s opacity linear' ,
24+ } ,
1425 } ,
1526 fileName : {
1627 position : 'sticky' ,
Original file line number Diff line number Diff line change 11import { memo } from 'react'
22import { DisplayResult } from '../../../types'
33import TreeItem from './TreeItem'
4+ import * as stylex from '@stylexjs/stylex'
5+
6+ const styles = stylex . create ( {
7+ resultList : {
8+ flexGrow : 1 ,
9+ overflowY : 'scroll' ,
10+ ':not(:hover) > div::before' : {
11+ opacity : 0 ,
12+ } ,
13+ ':hover > div::before' : {
14+ opacity : 1 ,
15+ } ,
16+ } ,
17+ } )
418
519interface SearchResultListProps {
620 matches : Array < [ string , DisplayResult [ ] ] >
721}
822
923const SearchResultList = ( { matches } : SearchResultListProps ) => {
1024 return (
11- < div style = { { flexGrow : '1' , overflowY : 'scroll' } } >
25+ < div { ... stylex . props ( styles . resultList ) } >
1226 { matches . map ( ( [ filePath , match ] ) => {
1327 return < TreeItem filePath = { filePath } matches = { match } key = { filePath } />
1428 } ) }
You can’t perform that action at this time.
0 commit comments