Skip to content

Commit

Permalink
Add smaller text size
Browse files Browse the repository at this point in the history
  • Loading branch information
cutiful committed Mar 27, 2020
1 parent c4d935b commit 6bf404f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,17 @@ export function getSmallTextSize(width) {

return 16;
}

export function getSmallerTextSize(width) {
if (width >= 520) {
return 15;
} else if (width >= 450) {
return 14;
} else if (width >= 420) {
return 12;
} else if (width >= 320) {
return 10;
}

return 6;
}

0 comments on commit 6bf404f

Please sign in to comment.