Browse Source

Made event title take the while width if no image available

keplyx 4 years ago
parent
commit
eb72ea6040
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      screens/PlanningScreen.js

+ 4
- 2
screens/PlanningScreen.js View File

165
                     flex: 1,
165
                     flex: 1,
166
                     flexDirection: 'row'
166
                     flexDirection: 'row'
167
                 }}>
167
                 }}>
168
-                    <View style={{width: '70%'}}>
168
+                    <View style={{
169
+                        width: item.logo !== null ? '70%' : '100%',
170
+                    }}>
169
                         <Text style={{
171
                         <Text style={{
170
                             color: ThemeManager.getCurrentThemeVariables().listNoteColor,
172
                             color: ThemeManager.getCurrentThemeVariables().listNoteColor,
171
                             marginTop: 5,
173
                             marginTop: 5,
176
                         <H3 style={{marginBottom: 10}}>{item.title}</H3>
178
                         <H3 style={{marginBottom: 10}}>{item.title}</H3>
177
                     </View>
179
                     </View>
178
                     <View style={{
180
                     <View style={{
179
-                        width: '30%',
181
+                        width: item.logo !== null ? '30%' : 0,
180
                         height: 80
182
                         height: 80
181
                     }}>
183
                     }}>
182
                         {item.logo !== null ?
184
                         {item.logo !== null ?

Loading…
Cancel
Save