forked from vergnet/application-amicale
Made event title take the while width if no image available
This commit is contained in:
parent
06eba3fb9c
commit
eb72ea6040
1 changed files with 4 additions and 2 deletions
|
@ -165,7 +165,9 @@ export default class PlanningScreen extends React.Component<Props, State> {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
flexDirection: 'row'
|
flexDirection: 'row'
|
||||||
}}>
|
}}>
|
||||||
<View style={{width: '70%'}}>
|
<View style={{
|
||||||
|
width: item.logo !== null ? '70%' : '100%',
|
||||||
|
}}>
|
||||||
<Text style={{
|
<Text style={{
|
||||||
color: ThemeManager.getCurrentThemeVariables().listNoteColor,
|
color: ThemeManager.getCurrentThemeVariables().listNoteColor,
|
||||||
marginTop: 5,
|
marginTop: 5,
|
||||||
|
@ -176,7 +178,7 @@ export default class PlanningScreen extends React.Component<Props, State> {
|
||||||
<H3 style={{marginBottom: 10}}>{item.title}</H3>
|
<H3 style={{marginBottom: 10}}>{item.title}</H3>
|
||||||
</View>
|
</View>
|
||||||
<View style={{
|
<View style={{
|
||||||
width: '30%',
|
width: item.logo !== null ? '30%' : 0,
|
||||||
height: 80
|
height: 80
|
||||||
}}>
|
}}>
|
||||||
{item.logo !== null ?
|
{item.logo !== null ?
|
||||||
|
|
Loading…
Reference in a new issue