summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-09-29 20:22:47 +0300
committerRasmus Andersson <rasmus@notion.se>2017-09-29 20:22:47 +0300
commit365bc30de8c567a9278f25ca30d4ccad4de12307 (patch)
tree278f598472cffc88070e87c712325c80cbaf64df /docs
parent6daae9e5913515dc566a8f32df253f47313d9fec (diff)
downloadinter-365bc30de8c567a9278f25ca30d4ccad4de12307.tar.xz
website: fix size style issue in lab when viewing repertoire
Diffstat (limited to 'docs')
-rw-r--r--docs/lab/index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/lab/index.html b/docs/lab/index.html
index d1737f1ff..88dfda030 100644
--- a/docs/lab/index.html
+++ b/docs/lab/index.html
@@ -1463,6 +1463,8 @@ function main() {
const repertoireOrderControl = document.querySelector('label.repertoireOrder')
const samplesElement = document.querySelector('samples')
+ let sizeVar = null
+
// sample text
const samplesSelect = document.querySelector('select[name="sample"]')
for (let [k,v] of samples) {
@@ -1498,6 +1500,10 @@ function main() {
secondarySample.innerText = sampleText
}
}
+
+ if (sizeVar && v == 'Repertoire') {
+ sizeVar.refreshValue(null)
+ }
})
vars.bind('repertoireOrder', (e, v) => {
@@ -1555,7 +1561,7 @@ function main() {
}
const boxes = document.querySelector('boxes')
- vars.bind('size', (e, v) => {
+ sizeVar = vars.bind('size', (e, v) => {
boxes.style.display = (v > 20) ? 'none' : null
setCSSProp('font-size', v + 'px')
let glyphlist = samplesElement.querySelector('.glyphlist')