Merge branch '271-chart-view-date-should-be-on-same-line-as-actual-dates' into 'master'

Resolve "Chart view: "date" should be on same line as actual dates"

Closes #271

See merge request bloodyhealth/drip!184
This commit is contained in:
bl00dymarie
2019-03-20 19:56:07 +00:00
2 changed files with 6 additions and 5 deletions
+1 -4
View File
@@ -170,10 +170,7 @@ export default class CycleChart extends Component {
size={styles.yAxis.width - 7} size={styles.yAxis.width - 7}
color={cycleDayColor} color={cycleDayColor}
/> />
<AppText style={[ <AppText style={[styles.yAxisLabels.dateLabel]}>
styles.column.label.date,
styles.yAxisLabels.dateLabel
]}>
{labels.date.toLowerCase()} {labels.date.toLowerCase()}
</AppText> </AppText>
</View> </View>
+5 -1
View File
@@ -34,6 +34,7 @@ const styles = {
fontSize: 9, fontSize: 9,
fontWeight: '100', fontWeight: '100',
textAlign: 'center', textAlign: 'center',
paddingTop: 2.5
}, },
number: { number: {
color: cycleDayColor, color: cycleDayColor,
@@ -101,7 +102,10 @@ const styles = {
}, },
dateLabel: { dateLabel: {
textAlign: 'center', textAlign: 'center',
justifyContent: 'center' justifyContent: 'center',
color: 'grey',
fontSize: 9,
fontWeight: '100',
} }
}, },
horizontalGrid: { horizontalGrid: {