Fix view of graphs on smaller screens

This commit is contained in:
Brandon Presley 2023-11-27 11:51:15 +13:00
parent fe68ddfae8
commit 5a9030dae7
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { RouteProp, useRoute } from "@react-navigation/native"; import { RouteProp, useRoute } from "@react-navigation/native";
import { format } from "date-fns"; import { format } from "date-fns";
import { useEffect, useMemo, useState } from "react"; import { useEffect, useMemo, useState } from "react";
import { View } from "react-native"; import { ScrollView, View } from "react-native";
import { FileSystem } from "react-native-file-access"; import { FileSystem } from "react-native-file-access";
import { IconButton, List } from "react-native-paper"; import { IconButton, List } from "react-native-paper";
import Share from "react-native-share"; import Share from "react-native-share";
@ -121,7 +121,7 @@ export default function ViewGraph() {
icon="share" icon="share"
/> />
</StackHeader> </StackHeader>
<View style={{ padding: PADDING }}> <ScrollView style={{ padding: PADDING }}>
<Select <Select
label="Metric" label="Metric"
items={[ items={[
@ -148,7 +148,7 @@ export default function ViewGraph() {
<View style={{ paddingTop: PADDING }}> <View style={{ paddingTop: PADDING }}>
{metric === Metrics.Volume ? volumeChart : weightChart} {metric === Metrics.Volume ? volumeChart : weightChart}
</View> </View>
</View> </ScrollView>
</> </>
); );
} }