Skip to content

Commit bcbb8b9

Browse files
feat: tweak ui
1 parent bf3cb92 commit bcbb8b9

File tree

1 file changed

+5
-5
lines changed
  • src/webview/SearchSidebar/SearchResultList/comps

1 file changed

+5
-5
lines changed

src/webview/SearchSidebar/SearchResultList/comps/TreeItem.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const styles = stylex.create({
3030
},
3131
codeItem: {
3232
flex: '1 0 100%',
33-
paddingLeft: '20px',
33+
paddingLeft: '38px',
3434
listStyle: 'none',
3535
':hover': {
3636
background: 'var(--vscode-list-inactiveSelectionBackground)'
@@ -40,7 +40,6 @@ const styles = stylex.create({
4040
}
4141
},
4242
treeItem: {
43-
padding: '0 2px 0 10px',
4443
position: 'relative',
4544
background: 'var(--vscode-sideBar-background)',
4645
// this will cover drop shadow if no scroll at all
@@ -53,13 +52,12 @@ const styles = stylex.create({
5352
height: 6,
5453
top: 22,
5554
left: 0,
56-
right: 2,
55+
right: 0,
5756
zIndex: 1,
5857
background: 'var(--vscode-sideBar-background)'
5958
},
6059
// tricky. compensate cover color for first item
6160
':has( ul>:first-child:hover):before': {
62-
left: 18,
6361
background: 'var(--vscode-list-inactiveSelectionBackground)'
6462
}
6563
},
@@ -69,6 +67,8 @@ const styles = stylex.create({
6967
top: 0,
7068
cursor: 'pointer',
7169
display: 'flex',
70+
paddingLeft: 8,
71+
paddingRight: 2,
7272
lineHeight: '22px',
7373
height: '22px',
7474
alignItems: 'center',
@@ -85,7 +85,7 @@ const styles = stylex.create({
8585
paddingRight: '4px'
8686
},
8787
badge: {
88-
margin: '0 2px 0 auto',
88+
marginLeft: 'auto',
8989
flex: '0 0 auto'
9090
}
9191
})

0 commit comments

Comments
 (0)