File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" item-view" v-show =" item" >
3
3
<item :item =" item" ></item >
4
- <p class =" jobtext " v-if =" isJob " v-html =" item.text" ></p >
4
+ <p class =" itemtext " v-if =" hasText " v-html =" item.text" ></p >
5
5
<ul class =" poll-options" v-if =" pollOptions" >
6
6
<li v-for =" option in pollOptions" >
7
7
<p >{{option.text}}</p >
@@ -56,6 +56,10 @@ export default {
56
56
computed: {
57
57
isJob () {
58
58
return this .item .type === ' job'
59
+ },
60
+
61
+ hasText () {
62
+ return this .item .hasOwnProperty (' text' )
59
63
}
60
64
}
61
65
}
@@ -80,9 +84,10 @@ export default {
80
84
.subtext
81
85
color $gray
82
86
font-size 11px
83
- .jobtext
87
+ .itemtext
84
88
color $gray
85
89
margin-top 0
86
- .jobtext p
90
+ margin-bottom 30px
91
+ .itemtext p
87
92
margin 10px 0
88
93
</style >
You can’t perform that action at this time.
0 commit comments