add Bpopover default props & add text_rebond body and tags

This commit is contained in:
axolotle
2021-06-30 14:21:11 +02:00
parent f53bae6541
commit 985da08730
5 changed files with 49 additions and 12 deletions
+3 -2
View File
@@ -9,9 +9,9 @@
<b-popover
v-for="note in notes" :key="note.number"
custom-class="footnote"
:target="'note-' + note.number" :container="'node-' + nodeId"
:target="'note-' + note.number" :container="`node-${mode}-${nodeId}`"
placement="top" :fallback-placement="['bottom', 'right', 'left']"
:triggers="['focus']" :boundary-padding="0"
:triggers="['focus']"
>
<div class="footnote-content" v-html="note.content" />
@@ -91,6 +91,7 @@ export default {
mounted () {
if (this.mode === 'view' && this.notes) this.addFootnotes()
this.$el.querySelectorAll('img, video, audio').forEach(elem => elem.parentElement.classList.add('media-container'))
}
}
</script>