Skip to content

Commit 2a0b6b0

Browse files
ProsperBaoantfu
andauthored
chore: optimize the ellipsis style (#27)
Co-authored-by: Anthony Fu <github@antfu.me>
1 parent 4a35601 commit 2a0b6b0

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

packages/devtools/src/app/components/display/HighlightedPath.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,18 @@ export default defineComponent({
5353
}
5454

5555
if (part === '.pnpm') {
56-
classes[index]?.push('op50')
57-
if (nodes[index])
58-
nodes[index].children = '…'
56+
if (nodes[index]) {
57+
nodes[index].children = '~'
58+
classes[index].push('op25!')
59+
classes[index - 1].push('op25!')
60+
}
5961
removeIndexes.add(index + 1)
6062
removeIndexes.add(index + 2)
63+
classes[index + 3].push('op25!')
6164
if (nodes[index + 4]?.children === 'node_modules') {
6265
removeIndexes.add(index + 3)
6366
removeIndexes.add(index + 4)
67+
classes[index + 5].push('op25!')
6468
}
6569
}
6670
if (part === ':') {

0 commit comments

Comments
 (0)