File tree Expand file tree Collapse file tree 6 files changed +57
-5
lines changed Expand file tree Collapse file tree 6 files changed +57
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" project-nav" >
2
+ <div
3
+ class =" project-nav"
4
+ :class =" {
5
+ wide: $responsive.wide
6
+ }"
7
+ >
3
8
<div class =" content" >
4
9
<VueGroup
5
10
v-model =" currentView"
@@ -139,4 +144,18 @@ export default {
139
144
button-colors ($vue-ui-color-light , $bg )
140
145
& .selected
141
146
button-colors (lighten ($vue-ui-color-primary , 40% ), $bg )
147
+
148
+ & .wide
149
+ >>> .vue-ui-button
150
+ justify-content flex-start
151
+ padding-left $padding-item
152
+ padding-right @padding-left
153
+ > .content
154
+ width 100%
155
+ text-align left
156
+ > .default-slot
157
+ flex auto 1 1
158
+ width 0
159
+ margin-left 6px
160
+ ellipsis ()
142
161
</style >
Original file line number Diff line number Diff line change 9
9
:delay =" { show: 300, hide: 0 }"
10
10
>
11
11
<VueGroupButton
12
- class =" flat big icon-button"
12
+ class =" flat big"
13
+ :class =" {
14
+ 'icon-button': $responsive.wide
15
+ }"
13
16
:value =" view.name"
14
17
:icon-left =" !imageIcon && view.icon"
15
18
>
18
21
:src =" view.icon"
19
22
class =" image-icon"
20
23
>
24
+
25
+ <span v-if =" $responsive.wide" class =" label" >{{ $t(view.tooltip) }}</span >
21
26
</VueGroupButton >
22
27
23
28
<template slot="popover">
Original file line number Diff line number Diff line change 5
5
slot =" trigger"
6
6
icon-left =" more_horiz"
7
7
class =" icon-button big flat"
8
- />
8
+ >
9
+ <span v-if =" $responsive.wide" class =" label" >{{ $t('components.project-nav.tooltips.more') }}</span >
10
+ </VueButton >
9
11
10
12
<VueDropdownButton
11
13
icon-left =" work"
20
22
</VueDropdown >
21
23
</div >
22
24
</template >
25
+
26
+ <style lang="stylus" scoped>
27
+ @import "~@/style/imports"
28
+
29
+ .project-nav-more
30
+ .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button
31
+ & ,
32
+ & :hover
33
+ background lighten ($vue-ui-color-dark , 10% ) !important
34
+ color $md-white
35
+ /deep/ > .content > .button-icon
36
+ svg
37
+ fill @color
38
+ </style >
Original file line number Diff line number Diff line change 62
62
"tooltips" : {
63
63
"plugins" : " Plugins" ,
64
64
"configuration" : " Configuration" ,
65
- "tasks" : " Tasks"
65
+ "tasks" : " Tasks" ,
66
+ "more" : " More"
66
67
}
67
68
},
68
69
"project-select-list" : {
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ Vue.use(Responsive, {
28
28
} ,
29
29
desktop ( ) {
30
30
return ! this . tablet
31
+ } ,
32
+ wide ( ) {
33
+ return this . width >= 1600
31
34
}
32
35
}
33
36
} )
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" project-home page" >
2
+ <div
3
+ class =" project-home page"
4
+ :class =" {
5
+ wide: $responsive.wide
6
+ }"
7
+ >
3
8
<ProjectNav />
4
9
5
10
<div v-if =" ready" class =" content" >
@@ -38,6 +43,9 @@ export default {
38
43
grid-template-rows auto
39
44
grid-template-areas "side-left content"
40
45
46
+ & .wide
47
+ grid-template-columns 250px 1 fr
48
+
41
49
.project-nav
42
50
grid-area side-left
43
51
You can’t perform that action at this time.
0 commit comments