Skip to content

Commit 64b3b0f

Browse files
committed
fix: scale down font size on width change
1 parent b3ea6cb commit 64b3b0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Pages/HomePage.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public struct HomePage: Page {
3737
.inlineStyle("color", "#fafafa")
3838
.inlineStyle("font-optical-sizing", "auto")
3939
.inlineStyle("font-size", "0.9em")
40+
.inlineStyle("font-size", "0.8em", media: .maxWidth(480))
41+
.inlineStyle("font-size", "0.7em", media: .maxWidth(380))
4042

4143
VueScript()
4244
}

0 commit comments

Comments
 (0)