Skip to content

Commit 123fffa

Browse files
author
Guillaume Chau
committed
fix(ui): folder path parts style
1 parent 7402148 commit 123fffa

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

packages/@vue/cli-ui/src/components/FolderExplorer.vue

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,22 @@
4242
v-if="data"
4343
class="path-value"
4444
>
45-
<VueButton
45+
<div
4646
v-for="(slice, index) of slicePath(data.cwd)"
4747
:key="index"
48-
class="path-folder flat"
49-
:icon-left="!slice.name ? 'folder' : null"
50-
:class="{
51-
'icon-button': !slice.name
52-
}"
53-
@click="openFolder(slice.path)"
48+
class="path-part"
5449
>
55-
{{ slice.name }}
56-
</VueButton>
50+
<VueButton
51+
class="path-folder flat"
52+
:icon-left="!slice.name ? 'folder' : null"
53+
:class="{
54+
'icon-button': !slice.name
55+
}"
56+
@click="openFolder(slice.path)"
57+
>
58+
{{ slice.name }}
59+
</VueButton>
60+
</div>
5761
</div>
5862
<VueButton
5963
class="edit-path-button icon-button"
@@ -412,21 +416,15 @@ export default {
412416
h-box()
413417
align-items stretch
414418
419+
.path-part
420+
&:not(:first-child)
421+
border-left 2px solid
422+
border-left-color $vue-ui-color-light
423+
.vue-ui-dark-mode &
424+
border-left-color $vue-ui-color-darker
425+
415426
.path-folder
416427
padding 0 9px
417-
&:not(:first-child)
418-
position relative
419-
&::before
420-
display block
421-
content ''
422-
position absolute
423-
top 0
424-
left -1px
425-
height 100%
426-
width 2px
427-
background $vue-ui-color-light
428-
.vue-ui-dark-mode &
429-
background $vue-ui-color-darker
430428
431429
.edit-path-button
432430
margin-left 4px

0 commit comments

Comments
 (0)