git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 700173f9df1724b50186a5ea9deb34c3a2c3b697

rollup: fix loader position

Matt McKegg committed on 2/15/2017, 2:36:44 PM
Parent: 061771d94a39867570b526667d178a13a3a86a8f

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -54,17 +54,19 @@
5454 h('strong', [updates]), ' ',
5555 when(computed(updates, a => a === 1), 'update', 'updates')
5656 ])
5757
58- var content = h('section.content')
58+ var content = h('section.content', {
59+ hidden: computed(sync, s => !s)
60+ })
5961
6062 var container = h('div', {
6163 className: 'Scroller',
6264 style: { overflow: 'auto' },
63- hidden: computed(sync, s => !s)
6465 }, [
6566 h('div.wrapper', [
6667 h('section.prepend', opts.prepend),
68+ when(sync, null, h('div', {className: 'Loading -large'})),
6769 content
6870 ])
6971 ])
7072
@@ -109,9 +111,8 @@
109111 var abortLastFeed = null
110112
111113 var result = MutantArray([
112114 when(updates, updateLoader),
113- when(sync, null, h('div', {className: 'Loading -large'})),
114115 container
115116 ])
116117
117118 result.reload = refresh

Built with git-ssb-web