@@ -134,10 +134,10 @@ export function Spending() {
134
134
>
135
135
< View
136
136
style = { {
137
- flexDirection : 'row' ,
138
- alignItems : 'center' ,
137
+ flexDirection : isNarrowWidth ? 'column' : 'row' ,
138
+ alignItems : isNarrowWidth ? 'inherit' : 'center' ,
139
139
padding : 20 ,
140
- paddingBottom : conditions . length > 0 ? 0 : 10 ,
140
+ paddingBottom : 0 ,
141
141
flexShrink : 0 ,
142
142
} }
143
143
>
@@ -146,6 +146,8 @@ export function Spending() {
146
146
alignItems : 'center' ,
147
147
flexDirection : 'row' ,
148
148
marginRight : 5 ,
149
+ marginBottom : 5 ,
150
+ marginTop : 5 ,
149
151
} }
150
152
>
151
153
< Text
@@ -175,6 +177,15 @@ export function Spending() {
175
177
>
176
178
to the:
177
179
</ Text >
180
+ </ View >
181
+ < View
182
+ style = { {
183
+ flexDirection : 'row' ,
184
+ marginRight : 5 ,
185
+ marginTop : 5 ,
186
+ marginBottom : 5 ,
187
+ } }
188
+ >
178
189
< ModeButton
179
190
selected = { [ 'lastMonth' , 'twoMonthsPrevious' ] . includes ( mode ) }
180
191
style = { {
@@ -211,42 +222,56 @@ export function Spending() {
211
222
</ ModeButton >
212
223
) }
213
224
</ View >
225
+ { ! isNarrowWidth && (
226
+ < >
227
+ < View
228
+ style = { {
229
+ width : 1 ,
230
+ height : 30 ,
231
+ backgroundColor : theme . pillBorderDark ,
232
+ marginRight : 10 ,
233
+ } }
234
+ /> { ' ' }
235
+ </ >
236
+ ) }
214
237
< View
215
238
style = { {
216
- width : 1 ,
217
- height : 30 ,
218
- backgroundColor : theme . pillBorderDark ,
219
- marginRight : 10 ,
220
- } }
221
- /> { ' ' }
222
- < FilterButton
223
- onApply = { onApplyFilter }
224
- compact = { false }
225
- hover = { false }
226
- exclude = { [ 'date' ] }
227
- />
228
- < View style = { { flex : 1 } } />
229
- < Tooltip
230
- placement = "bottom start"
231
- content = { < Text > Save compare and filter options</ Text > }
232
- style = { {
233
- ...styles . tooltip ,
234
- lineHeight : 1.5 ,
235
- padding : '6px 10px' ,
236
- marginLeft : 10 ,
239
+ alignItems : 'center' ,
240
+ flexDirection : 'row' ,
241
+ marginBottom : 5 ,
242
+ marginTop : 5 ,
243
+ flex : 1 ,
237
244
} }
238
245
>
239
- < Button
240
- type = "primary"
246
+ < FilterButton
247
+ onApply = { onApplyFilter }
248
+ compact = { isNarrowWidth }
249
+ hover = { false }
250
+ exclude = { [ 'date' ] }
251
+ />
252
+ < View style = { { flex : 1 } } />
253
+ < Tooltip
254
+ placement = "bottom start"
255
+ content = { < Text > Save compare and filter options</ Text > }
241
256
style = { {
257
+ ...styles . tooltip ,
258
+ lineHeight : 1.5 ,
259
+ padding : '6px 10px' ,
242
260
marginLeft : 10 ,
243
261
} }
244
- onClick = { saveFilter }
245
- disabled = { filterSaved ? true : false }
246
262
>
247
- { filterSaved ? 'Saved' : 'Save' }
248
- </ Button >
249
- </ Tooltip >
263
+ < Button
264
+ type = "primary"
265
+ style = { {
266
+ marginLeft : 10 ,
267
+ } }
268
+ onClick = { saveFilter }
269
+ disabled = { filterSaved ? true : false }
270
+ >
271
+ { filterSaved ? 'Saved' : 'Save' }
272
+ </ Button >
273
+ </ Tooltip >
274
+ </ View >
250
275
</ View >
251
276
< View
252
277
style = { {
@@ -269,8 +294,6 @@ export function Spending() {
269
294
flexShrink : 0 ,
270
295
flexDirection : 'row' ,
271
296
spacing : 2 ,
272
- justifyContent : 'flex-start' ,
273
- alignContent : 'flex-start' ,
274
297
} }
275
298
>
276
299
< AppliedFilters
0 commit comments