Skip to content

Commit dbcccc0

Browse files
authored
Fix/ Hint max width (#1747)
* limit hint max width to the screenWidth * remove DEFAULT_MAX_WIDTH const
1 parent 439624d commit dbcccc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/hint/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ const styles = StyleSheet.create({
613613
position: 'absolute'
614614
},
615615
hint: {
616-
maxWidth: 400,
616+
maxWidth: Math.min(Constants.screenWidth - 2 * Spacings.s4, 400),
617617
borderRadius: BorderRadiuses.br60,
618618
backgroundColor: DEFAULT_COLOR
619619
},

0 commit comments

Comments
 (0)