Skip to content

Commit

Permalink
fix: allow mobile website to adjust font size
Browse files Browse the repository at this point in the history
  • Loading branch information
Zavins committed Sep 17, 2023
1 parent 291865a commit c323da5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ KEEP.initUtils = () => {
}

const setFontSize = (fontSizeLevel) => {
this.rootHtmlDom.style.fontSize = `${fs * (1 + fontSizeLevel * 0.05)}px`
this.rootHtmlDom.style.setProperty(
'font-size',
`${fs * (1 + fontSizeLevel * 0.05)}px`,
'important'
)
KEEP.styleStatus.fontSizeLevel = fontSizeLevel
KEEP.setStyleStatus()
}
Expand Down

0 comments on commit c323da5

Please sign in to comment.