File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 11
11
<VueGroupButton
12
12
class =" flat big"
13
13
:class =" {
14
- 'icon-button': !$responsive.wide
14
+ 'icon-button': !$responsive.wide,
15
+ 'has-image-icon': imageIcon
15
16
}"
16
17
:value =" view.name"
17
- :icon-left =" !imageIcon && view.icon"
18
+ :icon-left =" !imageIcon ? view.icon : null "
18
19
>
19
20
<img
20
21
v-if =" imageIcon"
@@ -127,6 +128,20 @@ $bg-dark = $vue-ui-color-dark
127
128
.image-icon
128
129
max-width 24px
129
130
max-height @width
131
+ .wide &
132
+ margin-right 6px
133
+ position relative
134
+ left - 2px
135
+
136
+ .vue-ui-group-button.has-image-icon
137
+ >>> .default-slot
138
+ display flex
139
+ align-items center
140
+ overflow visible !important
141
+ .label
142
+ display block
143
+ max-width 150px
144
+ ellipsis ()
130
145
131
146
.badges
132
147
margin ($padding-item / 2 ) 0
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ module.exports = api => {
15
15
api . addView ( {
16
16
id : 'vue-webpack-test-view' ,
17
17
name : 'test-webpack-route' ,
18
- icon : 'pets' ,
19
- // icon: 'http://localhost:4000/_plugin/%40vue%2Fcli-service/ webpack-icon.svg ',
18
+ // icon: 'pets',
19
+ icon : 'http://localhost:4000/public/ webpack-logo.png ' ,
20
20
tooltip : 'Test view from webpack addon'
21
21
} )
22
22
You can’t perform that action at this time.
0 commit comments