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',
{
for: 'uploadButton',
style: Object.assign({ verticalAlign: 'top', margin: '0px 3px' }, CLICKABLE)
style: Object.assign({ margin: '0px 3px' }, CLICKABLE)
},
[
Icon({
name: 'upload',
size: 0.75,
title: 'Upload'
title: 'Upload',
style: { verticalAlign: 'middle' }
})
]
),

View File

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

View File

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