File tree Expand file tree Collapse file tree 5 files changed +39
-16
lines changed Expand file tree Collapse file tree 5 files changed +39
-16
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Includes functionality to:
19
19
class =" input-add"
20
20
@click =" resetActiveComponent"
21
21
reactive-rules
22
- :rules =" [val => !Object.keys(this.componentMap).includes(val) || 'A component with this name already exists' ]"
22
+ :rules =" [val => !Object.keys(this.componentMap).includes(val) || 'A component/route with this name already exists' ]"
23
23
>
24
24
<template v-slot :append >
25
25
<q-btn
Original file line number Diff line number Diff line change @@ -13,11 +13,17 @@ Description:
13
13
@click =" selectRoute(route)"
14
14
>
15
15
<q-list bordered separator class =" list-item" >
16
- <q-item clickable v-ripple :class =" route === activeRoute ? 'panel-block is-active list-item' : 'panel-block list-item'" >
17
- <q-item-section >{{route}}</q-item-section >
18
- <span v-if =" route !== 'HomeView'" >
19
- <q-btn round flat icon =" highlight_off" v-on:click.stop =" deleteSelectedRoute(route)" />
20
- </span >
16
+ <q-item clickable dense v-ripple :class =" route === activeRoute ? 'panel-block is-active list-item' : 'panel-block list-item'" >
17
+ <q-item-section >
18
+ <div class =" block-container" >
19
+ <div class =" block-info" >
20
+ {{route}}
21
+ </div >
22
+ <span v-if =" route !== 'HomeView'" >
23
+ <q-btn round flat icon =" highlight_off" v-on:click.stop =" deleteSelectedRoute(route)" />
24
+ </span >
25
+ </div >
26
+ </q-item-section >
21
27
</q-item >
22
28
</q-list >
23
29
</a >
@@ -47,9 +53,11 @@ export default {
47
53
</script >
48
54
49
55
<style lang="scss" scoped>
56
+
50
57
.panel-block {
51
58
background : $secondary !important ;
52
- color : $menutext !important ;;
59
+ color : $menutext !important ;
60
+ min-height : 45px ;
53
61
}
54
62
.is-active {
55
63
background : $secondary !important ;
Original file line number Diff line number Diff line change @@ -522,11 +522,8 @@ export default {
522
522
};
523
523
< / script>
524
524
525
- < style>
526
- .nav - btn {
527
- min- height: 30px ! important;
528
- text- transform: capitalize;
529
- }
525
+ < style scoped>
526
+
530
527
.center {
531
528
display: inline- block;
532
529
text- align: center;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Description:
7
7
<template >
8
8
<div id =" uploadImgMenuItem" >
9
9
<q-list >
10
- <q-expansion-item expand-separator :label =" this.activeRoute " >
10
+ <q-expansion-item expand-separator :label =" this.mockupUploadLabel " >
11
11
<div class =" upload" >
12
12
<q-btn
13
13
class =" upload-btn"
@@ -55,6 +55,7 @@ export default {
55
55
return {
56
56
files: [],
57
57
source: " " ,
58
+ mockupUploadLabel: ` Upload mockup image for ${ this .$store .state .activeRoute } ` ,
58
59
};
59
60
},
60
61
computed: {
@@ -114,6 +115,7 @@ export default {
114
115
watch: {
115
116
// once you change your active route, the mockup image should change as well
116
117
activeRoute : function () {
118
+ this .mockupUploadLabel = ` Upload mockup image for ${ this .activeRoute } `
117
119
if (this .imagePath [this .activeRoute ]) {
118
120
// if there is a uploaded image
119
121
this .source = " file:///" + this .imagePath [this .activeRoute ];
@@ -126,6 +128,7 @@ export default {
126
128
</script >
127
129
128
130
<style lang="scss">
131
+
129
132
#uploadImgMenuItem {
130
133
display : flex ;
131
134
flex-direction : column ;
@@ -141,12 +144,15 @@ export default {
141
144
.upload-btn {
142
145
text-transform : capitalize ;
143
146
font-size : 12px ;
147
+ width : 150px ;
148
+ height : auto ;
149
+ min-height : 42px ;
144
150
}
145
151
146
152
.upload {
147
- margin : 0.5 rem ;
153
+ margin : 1 rem ;
148
154
display : flex ;
149
- justify-content : space-evenly ;
155
+ justify-content : space-around ;
150
156
}
151
157
152
158
.file-path {
Original file line number Diff line number Diff line change @@ -25,9 +25,14 @@ main {
25
25
}
26
26
.q-btn {
27
27
align-items : center ;
28
- height : 20px ;
28
+ }
29
+
30
+ .nav-btn {
31
+ min-height : 30px !important ;
29
32
width : 65px ;
33
+ text-transform : capitalize ;
30
34
}
35
+
31
36
.q-item {
32
37
background : $subsecondary ;
33
38
}
@@ -38,6 +43,13 @@ main {
38
43
color : $menutext ;
39
44
}
40
45
46
+ .block-container {
47
+ display : flex ;
48
+ flex-direction : row ;
49
+ justify-content : space-between ;
50
+ align-items : center ;
51
+ }
52
+
41
53
.q-field--outlined .q-field__control {
42
54
padding : 0 0 0 12px ;
43
55
}
You can’t perform that action at this time.
0 commit comments