File tree Expand file tree Collapse file tree 3 files changed +38
-7
lines changed Expand file tree Collapse file tree 3 files changed +38
-7
lines changed Original file line number Diff line number Diff line change 19
19
<div
20
20
slot =" scroll"
21
21
class =" metrics"
22
+ :class =" {
23
+ 'high-density': highDensity
24
+ }"
22
25
>
23
26
<div class =" header" >
24
27
<div
@@ -124,6 +127,11 @@ export default {
124
127
125
128
componentName () {
126
129
return (this .$shared .classifyComponents ? classify (this .entry .id ) : this .entry .id ) || ' Anonymous Component'
130
+ },
131
+
132
+ highDensity () {
133
+ const pref = this .$shared .displayDensity
134
+ return (pref === ' auto' && this .entries .length > 8 ) || pref === ' high'
127
135
}
128
136
},
129
137
@@ -142,13 +150,17 @@ export default {
142
150
.metrics
143
151
padding 6px 0
144
152
font-size 14px
153
+ & .high-density
154
+ font-size 12px
145
155
146
156
.header ,
147
157
.metric
148
158
display flex
149
159
/deep/ > *
150
160
flex 25% 0 0
151
161
padding 4px 10px
162
+ .high-density &
163
+ padding 2px 10px
152
164
& :not (:first-child )
153
165
text-align right
154
166
Original file line number Diff line number Diff line change 15
15
v-for =" bubble of marker.bubbles"
16
16
:key =" bubble.type"
17
17
class =" group"
18
+ :class =" {
19
+ 'high-density': finalHighDensity
20
+ }"
18
21
>
19
22
<div class =" group-title" >
20
23
{{ bubble.type }}
21
24
</div >
22
25
<div
23
26
v-for =" (entry, index) of bubble.entries"
24
27
:key =" index"
25
- class =" entry selectable -item"
28
+ class =" entry list -item"
26
29
:class =" {
27
30
selected: selectedEntry === entry
28
31
}"
@@ -67,6 +70,21 @@ export default {
67
70
}
68
71
},
69
72
73
+ computed: {
74
+ totalEntriesCount () {
75
+ let result = 0
76
+ for (const bubble of this .marker .bubbles ) {
77
+ result += bubble .entries .length
78
+ }
79
+ return result
80
+ },
81
+
82
+ finalHighDensity () {
83
+ const pref = this .$shared .displayDensity
84
+ return (pref === ' auto' && this .totalEntriesCount > 8 ) || pref === ' high'
85
+ }
86
+ },
87
+
70
88
watch: {
71
89
marker () {
72
90
this .selectedEntry = null
@@ -88,6 +106,8 @@ export default {
88
106
.group-title ,
89
107
.entry
90
108
padding 7px 12px 6px
109
+ .high-density &
110
+ padding 3px 12px 2px
91
111
92
112
.group
93
113
& :not (:first-child )
@@ -103,11 +123,9 @@ export default {
103
123
display flex
104
124
.label
105
125
flex auto 1 1
106
- color $pink
107
126
.time
108
127
color $md-grey-500
109
128
& .selected
110
- .label ,
111
129
.time
112
130
color $white
113
131
</style >
Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ export default {
159
159
.vue-ui-icon >>> svg
160
160
fill lighten ($active-color , 95% )
161
161
.high-density &
162
- padding 4px 20px
162
+ padding 1px 20px
163
+ min-height 22px
163
164
span
164
165
display inline-block
165
166
vertical-align middle
@@ -182,9 +183,9 @@ export default {
182
183
line-height : 1
183
184
color : #f f f
184
185
& .name
185
- background-color # a a a
186
+ background-color $purple
186
187
& .alias
187
- background-color # ff 83 44
188
+ background-color $orange
188
189
& .redirect
189
- background-color # af 90 d5
190
+ background-color $darkerGrey
190
191
</style >
You can’t perform that action at this time.
0 commit comments