limit selector width

This commit is contained in:
2018-06-07 16:33:51 +03:00
parent fe83020a2f
commit dcafd98167

View File

@@ -41,7 +41,7 @@ export default function Selector({
} }
}} }}
/> />
<Spring from={{ opacity: 0 }} to={{ opacity: 1 }}> <Spring native from={{ opacity: 0 }} to={{ opacity: 1 }}>
{styles => ( {styles => (
<animated.button <animated.button
style={{ ...button, ...styles }} style={{ ...button, ...styles }}
@@ -71,7 +71,7 @@ export default function Selector({
} }
}} }}
/> />
<Spring from={{ opacity: 0 }} to={{ opacity: 1 }}> <Spring native from={{ opacity: 0 }} to={{ opacity: 1 }}>
{styles => ( {styles => (
<animated.button <animated.button
style={{ ...button, ...styles }} style={{ ...button, ...styles }}
@@ -88,7 +88,7 @@ export default function Selector({
return ( return (
<div id="listselector"> <div id="listselector">
<Select <Select
style={{ fontSize: '1.5rem' }} style={{ fontSize: '1.5rem', width: '100%' }}
value={list} value={list}
onChange={e => onChange(e.target.value)} onChange={e => onChange(e.target.value)}
> >