Browse Source

Made event title take the while width if no image available

keplyx 2 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,7 +165,9 @@ export default class PlanningScreen extends React.Component<Props, State> {
165 165
                     flex: 1,
166 166
                     flexDirection: 'row'
167 167
                 }}>
168
-                    <View style={{width: '70%'}}>
168
+                    <View style={{
169
+                        width: item.logo !== null ? '70%' : '100%',
170
+                    }}>
169 171
                         <Text style={{
170 172
                             color: ThemeManager.getCurrentThemeVariables().listNoteColor,
171 173
                             marginTop: 5,
@@ -176,7 +178,7 @@ export default class PlanningScreen extends React.Component<Props, State> {
176 178
                         <H3 style={{marginBottom: 10}}>{item.title}</H3>
177 179
                     </View>
178 180
                     <View style={{
179
-                        width: '30%',
181
+                        width: item.logo !== null ? '30%' : 0,
180 182
                         height: 80
181 183
                     }}>
182 184
                         {item.logo !== null ?

Loading…
Cancel
Save