Fix splash screen language picker appearance on Chrome (#2952)
* fix: correct language picker appearance on Chrome * fix: prevent chevron shrink on long language nameszio/stable
parent
3beb4ec63d
commit
08c6014751
|
@ -42,31 +42,35 @@ export function AppLanguageDropdown() {
|
||||||
// We don't have hitSlop here to increase the tap region,
|
// We don't have hitSlop here to increase the tap region,
|
||||||
// alternative is negative margins.
|
// alternative is negative margins.
|
||||||
{height: 32, marginVertical: -((32 - 14) / 2)},
|
{height: 32, marginVertical: -((32 - 14) / 2)},
|
||||||
a.flex_row,
|
|
||||||
a.gap_sm,
|
|
||||||
a.align_center,
|
|
||||||
a.flex_shrink,
|
|
||||||
]}>
|
]}>
|
||||||
<Text aria-hidden={true} style={t.atoms.text_contrast_medium}>
|
<View
|
||||||
{APP_LANGUAGES.find(l => l.code2 === sanitizedLang)?.name}
|
style={[
|
||||||
</Text>
|
a.flex_row,
|
||||||
<ChevronDown fill={t.atoms.text.color} size="xs" style={a.flex_shrink} />
|
a.gap_sm,
|
||||||
|
a.align_center,
|
||||||
|
a.flex_shrink,
|
||||||
|
a.h_full,
|
||||||
|
t.atoms.bg,
|
||||||
|
]}>
|
||||||
|
<Text aria-hidden={true} style={t.atoms.text_contrast_medium}>
|
||||||
|
{APP_LANGUAGES.find(l => l.code2 === sanitizedLang)?.name}
|
||||||
|
</Text>
|
||||||
|
<ChevronDown fill={t.atoms.text.color} size="xs" style={a.flex_0} />
|
||||||
|
</View>
|
||||||
|
|
||||||
<select
|
<select
|
||||||
value={sanitizedLang}
|
value={sanitizedLang}
|
||||||
onChange={onChangeAppLanguage}
|
onChange={onChangeAppLanguage}
|
||||||
style={{
|
style={{
|
||||||
|
fontSize: a.text_sm.fontSize,
|
||||||
|
letterSpacing: a.text_sm.letterSpacing,
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
MozAppearance: 'none',
|
|
||||||
WebkitAppearance: 'none',
|
|
||||||
appearance: 'none',
|
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
inset: 0,
|
inset: 0,
|
||||||
width: '100%',
|
opacity: 0,
|
||||||
color: 'transparent',
|
color: t.atoms.text.color,
|
||||||
background: 'transparent',
|
background: t.atoms.bg.backgroundColor,
|
||||||
border: 0,
|
padding: 4,
|
||||||
padding: 0,
|
|
||||||
}}>
|
}}>
|
||||||
{APP_LANGUAGES.filter(l => Boolean(l.code2)).map(l => (
|
{APP_LANGUAGES.filter(l => Boolean(l.code2)).map(l => (
|
||||||
<option key={l.code2} value={l.code2}>
|
<option key={l.code2} value={l.code2}>
|
||||||
|
|
Loading…
Reference in New Issue