parent
6f7c5c50f7
commit
0983c8ed57
@ -33,7 +33,8 @@ export default class MUCPollView extends CustomElement {
|
||||
return tplPoll(this, currentPoll)
|
||||
}
|
||||
|
||||
toggle () {
|
||||
toggle (ev) {
|
||||
ev.preventDefault()
|
||||
this.collapsed = !this.collapsed
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,10 @@
|
||||
p.livechat-poll-question {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
|
||||
span {
|
||||
cursor: pointer; // because a click toggles
|
||||
}
|
||||
}
|
||||
|
||||
p.livechat-poll-instructions {
|
||||
@ -120,6 +124,11 @@ body[livechat-viewer-mode="on"] {
|
||||
// stop showing poll when over in readonly mode
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
p.livechat-poll-instructions {
|
||||
// No need for instruction in readonly mode
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,9 @@ export function tplPoll (el, currentPoll) {
|
||||
size="1em"></converse-icon>
|
||||
</button>`
|
||||
}
|
||||
${currentPoll.question}
|
||||
<span @click=${el.toggle}>
|
||||
${currentPoll.question}
|
||||
</span>
|
||||
</p>
|
||||
${
|
||||
el.collapsed
|
||||
|
Loading…
x
Reference in New Issue
Block a user