From 93608ca8ef31d8da4b63ae6103f6d0783bd09d9e Mon Sep 17 00:00:00 2001 From: MariaZ Date: Fri, 30 Sep 2022 21:20:01 +0200 Subject: [PATCH] Set Tick text minHeight --- components/chart/tick.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/chart/tick.js b/components/chart/tick.js index 92ca2b7..ea392ff 100644 --- a/components/chart/tick.js +++ b/components/chart/tick.js @@ -12,9 +12,11 @@ const Tick = ({ yPosition, height, isBold, shouldShowLabel, label }) => { const containerStyle = [styles.container, { flexBasis: height, height, top }] const textStyle = isBold ? styles.textBold : styles.textNormal + if (!shouldShowLabel) return null + return ( - {shouldShowLabel && label} + {label} ) } @@ -36,6 +38,7 @@ const styles = StyleSheet.create({ position: 'absolute', right: 0, width: CHART_TICK_WIDTH, + minHeight: Sizes.base + 2, }, textBold: { fontSize: Sizes.base,