Better alignment for SVG Icons in text.

(or when all you have is a hammer, everything looks like a nail).
This commit is contained in:
Timothy Farrell 2018-01-11 17:20:37 -06:00
parent a947080e0e
commit 23c695ace9
3 changed files with 7 additions and 4 deletions

View File

@ -222,13 +222,14 @@ export function AllImagesView(vm, params) {
'label', 'label',
{ {
for: 'uploadButton', for: 'uploadButton',
style: Object.assign({ verticalAlign: 'top', margin: '0px 3px' }, CLICKABLE) style: Object.assign({ margin: '0px 3px' }, CLICKABLE)
}, },
[ [
Icon({ Icon({
name: 'upload', name: 'upload',
size: 0.75, size: 0.75,
title: 'Upload' title: 'Upload',
style: { verticalAlign: 'middle' }
}) })
] ]
), ),

View File

@ -30,7 +30,8 @@ export function AppBar(params) {
Object.assign( Object.assign(
{ {
name: up.button || 'arrow_left', name: up.button || 'arrow_left',
size: 0.75 size: 0.75,
style: { verticalAlign: 'middle' }
}, },
upProps upProps
) )

View File

@ -151,7 +151,8 @@ export function FocusView(vm, params) {
Icon({ Icon({
name: 'trash', name: 'trash',
size: 0.75, size: 0.75,
fill: 'white' fill: 'white',
style: { verticalAlign: 'middle' }
}) })
] ]
) )