A little formatting polish

This commit is contained in:
Timothy Farrell 2018-01-12 20:29:08 -06:00
parent a2f1c94586
commit 9b0c491794

View File

@ -209,12 +209,18 @@ export function AllImagesView(vm, params) {
'.sectionSelectButton .icon': toggleAll, '.sectionSelectButton .icon': toggleAll,
'.sectionSelectButton .icon svg path': toggleAll, '.sectionSelectButton .icon svg path': toggleAll,
'.photoOverlay': photoClick '.photoOverlay': photoClick
} },
style: { overflowY: hasPhotos ? 'scroll' : 'hidden' }
}, },
hasPhotos hasPhotos
? _sections.map(renderSection) ? _sections.map(renderSection)
: [ : [
Overlay([ Overlay(
{
textAlign: 'center',
padding: '5%'
},
[
el('h1', 'Welcome'), el('h1', 'Welcome'),
el('p', [ el('p', [
'To get started, drag some photos from your desktop or click on the ', 'To get started, drag some photos from your desktop or click on the ',
@ -235,7 +241,8 @@ export function AllImagesView(vm, params) {
), ),
'button.' 'button.'
]) ])
]) ]
)
] ]
) )
] ]
@ -263,6 +270,5 @@ const allImagesContainer = styled({
flex: 1 flex: 1
}); });
const allImagesContent = styled({ const allImagesContent = styled({
overflowY: 'scroll',
flex: 1 flex: 1
}); });