Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 2bc0547

Browse files
committed
font size
1 parent 11f3202 commit 2bc0547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ export const responsiveWidth = (w) => {
3737
}
3838

3939
export const responsiveFontSize = (f) => {
40-
return height*(f/100);
40+
return Math.sqrt((height*height)+(width*width))*(f/100);
4141
}

0 commit comments

Comments
 (0)