Merge pull request #390 from omnivore-app/fix/propogate-font-size

Propogate changes to the font size
This commit is contained in:
Jackson Harper 2022-04-06 11:56:23 -07:00 committed by GitHub
commit c8744460b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,10 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
await userPersonalizationMutation({ fontSize: newFontSize })
}
useEffect(() => {
updateFontSize(props.fontSize ?? 20)
}, [props.fontSize])
// Listen for font size and color mode change events sent from host apps (ios, macos...)
useEffect(() => {
const increaseFontSize = async () => {