Made event title take the while width if no image available

This commit is contained in:
keplyx 2019-11-12 18:04:13 +01:00
parent 06eba3fb9c
commit eb72ea6040

View file

@ -165,7 +165,9 @@ export default class PlanningScreen extends React.Component<Props, State> {
flex: 1,
flexDirection: 'row'
}}>
<View style={{width: '70%'}}>
<View style={{
width: item.logo !== null ? '70%' : '100%',
}}>
<Text style={{
color: ThemeManager.getCurrentThemeVariables().listNoteColor,
marginTop: 5,
@ -176,7 +178,7 @@ export default class PlanningScreen extends React.Component<Props, State> {
<H3 style={{marginBottom: 10}}>{item.title}</H3>
</View>
<View style={{
width: '30%',
width: item.logo !== null ? '30%' : 0,
height: 80
}}>
{item.logo !== null ?