Skip to content

Commit 4ae0973

Browse files
committed
bring back prop meta hover
1 parent 9ccfb4a commit 4ae0973

File tree

1 file changed

+31
-21
lines changed

1 file changed

+31
-21
lines changed

src/devtools/components/DataField.vue

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
<span class="key">{{ field.key }}</span>
1212
<span class="colon">:</span>
1313
<span class="value" :class="valueType">{{ formattedValue }}</span>
14+
15+
<div class="meta" v-if="field.meta">
16+
<div class="meta-field" v-for="(val, key) in field.meta">
17+
<span class="key">{{ key }}</span>
18+
<span class="value">{{ val }}</span>
19+
</div>
20+
</div>
1421
</div>
1522
<div class="children" v-if="expanded && isExpandableType">
1623
<data-field
@@ -157,6 +164,7 @@ export default {
157164
color #999
158165
&.literal
159166
color #0033cc
167+
160168
.type
161169
color $background-color
162170
padding 3px 6px
@@ -169,10 +177,6 @@ export default {
169177
background-color #eee
170178
&.prop
171179
background-color #96afdd
172-
&:hover
173-
cursor pointer
174-
.meta
175-
display block
176180
&.computed
177181
background-color #af90d5
178182
&.vuex-getter
@@ -181,25 +185,31 @@ export default {
181185
background-color #ffcc00
182186
&.observable
183187
background-color #ff9999
188+
189+
.meta
190+
display none
191+
position absolute
192+
z-index 999
193+
font-size 11px
194+
color #444
195+
top 0
196+
right calc(100% + 10px)
197+
width 170px
198+
border 1px solid #e3e3e3
199+
border-radius 3px
200+
padding 8px 12px
201+
background-color $background-color
202+
line-height 16px
203+
box-shadow 0 2px 12px rgba(0,0,0,.1)
204+
.key
205+
width 90px
206+
.meta-field
207+
display block
208+
&:hover
209+
cursor pointer
184210
.meta
185-
display none
186-
position absolute
187-
z-index 999
188-
font-size 11px
189-
color #444
190-
top 0
191-
left calc(100% + 4px)
192-
width 170px
193-
border 1px solid #e3e3e3
194-
border-radius 3px
195-
padding 8px 12px
196-
background-color $background-color
197-
line-height 16px
198-
box-shadow 0 2px 12px rgba(0,0,0,.1)
199-
.key
200-
width 90px
201-
.meta-field
202211
display block
212+
203213
.app.dark &
204214
.key
205215
color: #e36eec

0 commit comments

Comments
 (0)