File tree Expand file tree Collapse file tree 3 files changed +75
-20
lines changed Expand file tree Collapse file tree 3 files changed +75
-20
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <svg
3+ :class =" isPrimary ? 'is-primary' : 'no-primary'"
4+ viewBox =" 0 0 20 20"
5+ width =" 20" height =" 20"
6+ xmlns =" http://www.w3.org/2000/svg" >
7+ <circle v-if =" shape === 'circle'"
8+ cx =" 10" cy =" 10"
9+ :r =" 9 * attr.size"
10+ :stroke =" attr.strokeColor"
11+ :stroke-width =" attr.strokeWidth"
12+ :stroke-opacity =" attr.strokeOpacity"
13+ :fill =" attr.fillColor"
14+ :fill-opacity =" attr.fillOpacity"
15+ />
16+ <rect v-else-if =" shape === 'square'"
17+ :x =" 'calc(50% - ' + attr.size * 10 + ')'"
18+ :y =" 'calc(50% - ' + attr.size * 10 + ')'"
19+ :width =" attr.size * 20"
20+ :height =" attr.size * 20"
21+ :stroke-width =" attr.strokeWidth"
22+ :stroke =" attr.strokeColor"
23+ :stroke-opacity =" attr.strokeOpacity"
24+ :fill =" attr.fillColor"
25+ :fill-opacity =" attr.fillOpacity"
26+ />
27+ <line v-else-if =" shape === 'line'"
28+ x1 =" 0" x2 =" 100%"
29+ y1 =" 50%"
30+ y2 =" 50%"
31+ :stroke =" attr.strokeColor"
32+ :stroke-width =" attr.strokeWidth"
33+ :opacity =" attr.strokeOpacity"
34+ />
35+ </svg >
36+ </template >
37+
38+ <style >
39+ </style >
40+
41+
42+ <script >
43+ export default {
44+ name: ' LegendIcon' ,
45+ data () {
46+ return {};
47+ },
48+
49+ props: {
50+ shape: String ,
51+ isPrimary: Boolean ,
52+ attr: Object
53+ }
54+ };
55+ </script >
Original file line number Diff line number Diff line change 1818 class =" pa-0 mb-1"
1919 >
2020 <v-list-item-icon class =" my-0 mr-2" >
21- <v-icon v-if =" item.shape === 'circle'"
22- :color =" item.color"
23- :style =" { fontSize: 1.6 * item.size + 'em', opacity: item.opacity}" >
24- mdi-circle-outline</v-icon >
25- <v-icon v-else-if =" item.shape === 'square'"
26- :color =" item.color"
27- :style =" { fontSize: 1.6 * item.size + 'em', opacity: item.opacity}" >mdi-square</v-icon >
28- <span v-else-if =" item.shape === 'line'" class =" legend--line"
29- :style =" {
30- backgroundColor: item.color,
31- height: 0.5 * item.size + 'em',
32- opacity: item.opacity}" >  ;
33- </span >
21+ <legend-icon :shape =" item.shape" :isPrimary =" item.primary" :attr =" item" />
3422 </v-list-item-icon >
3523 <v-list-item-content class =" py-0" >
3624 <v-list-item-title >
4533
4634<style >
4735.legend .v-list-item--dense ,
48- .legend.v-list--dense .v-list-item {
36+ .legend.v-list--dense .v-list-item ,
37+ .legend .v-list-item__content {
4938 min-height : 24px ;
5039}
40+
5141.v-list-item__icon {
5242 min-width : auto ;
5343}
44+
45+ .legend .v-list-item__content {
46+ padding-bottom : 4px !important ;
47+ }
48+
5449.legend--line {
5550 margin : auto 0 ;
5651 width : 2em ;
5752}
53+
5854a .legend--hash ,
5955.legend--hash :visited ,
6056.legend--hash :hover ,
@@ -65,6 +61,11 @@ a.legend--hash,
6561 </style >
6662
6763<script >
64+ import Vue from ' vue' ;
65+ import LegendIcon from ' ./LegendIcon.vue' ;
66+
67+ Vue .component (' legend-icon' , LegendIcon);
68+
6869export default {
6970 name: ' SnapshotMeta' ,
7071 data () {
Original file line number Diff line number Diff line change 3333 clipped =" clipped"
3434 app
3535 width =" 320"
36- v-model =" snapshotnav"
37- >
36+ v-model =" snapshotnav" >
3837 <router-link id =" logo" :to =" '/' + $i18n.locale + '/'" class =" px-4 py-1 d-block" >
3938 <img alt =" gemeindescan logo" height =" 50" src =" @/assets/images/gemeindescan-logo.svg" >
4039 </router-link >
6867 </div >
6968
7069 <v-toolbar
71- width =" 320"
72- absolute
73- bottom >
70+ width =" 320"
71+ absolute
72+ bottom >
7473 <div class =" useractions" >
7574 <user-actions noRequest =" 1" />
7675 </div >
109108 class =" px-4 py-2"
110109 :style =" 'width:' + legendWidth"
111110 v-bind:class =" {open: mapinfoopen}"
112- >
111+ >
113112 <v-icon
114113 style =" position : absolute ; top :0 ; right :0 ;"
115114 class =" pa-2"
You can’t perform that action at this time.
0 commit comments