Commit 700173f9df1724b50186a5ea9deb34c3a2c3b697
rollup: fix loader position
Matt McKegg committed on 2/15/2017, 2:36:44 PMParent: 061771d94a39867570b526667d178a13a3a86a8f
Files changed
modules/feed/html/rollup.js | changed |
modules/feed/html/rollup.js | ||
---|---|---|
@@ -54,17 +54,19 @@ | ||
54 | 54 | h('strong', [updates]), ' ', |
55 | 55 | when(computed(updates, a => a === 1), 'update', 'updates') |
56 | 56 | ]) |
57 | 57 | |
58 | - var content = h('section.content') | |
58 | + var content = h('section.content', { | |
59 | + hidden: computed(sync, s => !s) | |
60 | + }) | |
59 | 61 | |
60 | 62 | var container = h('div', { |
61 | 63 | className: 'Scroller', |
62 | 64 | style: { overflow: 'auto' }, |
63 | - hidden: computed(sync, s => !s) | |
64 | 65 | }, [ |
65 | 66 | h('div.wrapper', [ |
66 | 67 | h('section.prepend', opts.prepend), |
68 | + when(sync, null, h('div', {className: 'Loading -large'})), | |
67 | 69 | content |
68 | 70 | ]) |
69 | 71 | ]) |
70 | 72 | |
@@ -109,9 +111,8 @@ | ||
109 | 111 | var abortLastFeed = null |
110 | 112 | |
111 | 113 | var result = MutantArray([ |
112 | 114 | when(updates, updateLoader), |
113 | - when(sync, null, h('div', {className: 'Loading -large'})), | |
114 | 115 | container |
115 | 116 | ]) |
116 | 117 | |
117 | 118 | result.reload = refresh |
Built with git-ssb-web