git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 62a7ed9e9f40e4074cdf4a0c74cb32327bb5abdd

font-size: don't set empty font-size when using default

Matt McKegg committed on 12/15/2017, 3:43:04 AM
Parent: 973b79e581dbc98d1e008cb5cbdf69714b168342

Files changed

main-window.jschanged
main-window.jsView
@@ -81,10 +81,12 @@
8181 )
8282
8383 document.head.appendChild(
8484 h('style', {
85- innerHTML: computed(api.settings.obs.get('patchwork.fontSize', document.documentElement.style.fontSize), size => {
86- return 'html, body {font-size: ' + size + ';}'
85+ innerHTML: computed(api.settings.obs.get('patchwork.fontSize'), size => {
86+ if (size) {
87+ return 'html, body {font-size: ' + size + ';}'
88+ }
8789 })
8890 })
8991 )
9092

Built with git-ssb-web