1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-24 06:59:52 +01:00

vueui: set arrow html entities via variables to avoid any encoding issues due to undeclared encoding in banner

This commit is contained in:
Ilya Kreymer 2021-09-06 19:50:39 -07:00
parent ad6c816d4e
commit 0d40feb860
2 changed files with 34 additions and 36 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="timeline"> <div class="timeline">
<div class="arrow previous" :class="{disabled: isScrollZero && !previousPeriod}" @click="scrollPrev" @dblclick.stop.prevent>&#x25C0;</div> <div v-html="arrowPrev" class="arrow previous" :class="{disabled: isScrollZero && !previousPeriod}" @click="scrollPrev" @dblclick.stop.prevent></div>
<div class="scroll" ref="periodScroll" :class="{highlight: highlight}"> <div class="scroll" ref="periodScroll" :class="{highlight: highlight}">
<div class="periods" ref="periods"> <div class="periods" ref="periods">
<div v-for="subPeriod in period.children" <div v-for="subPeriod in period.children"
@ -25,7 +25,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="arrow next" :class="{disabled: isScrollMax && !nextPeriod}" @click="scrollNext" @dblclick.stop.prevent>&#x25B6;</div> <div v-html="arrowNext" class="arrow next" :class="{disabled: isScrollMax && !nextPeriod}" @click="scrollNext" @dblclick.stop.prevent></div>
</div> </div>
</template> </template>
@ -41,6 +41,8 @@ export default{
nextPeriod: null, nextPeriod: null,
isScrollZero: true, isScrollZero: true,
isScrollMax: true, isScrollMax: true,
arrowPrev: "&#x25C0;",
arrowNext: "&#x25B6;",
}; };
}, },
created: function() { created: function() {