mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Propogate changes to the font size
Because this is update in the page now, this needs to be reflected when changed in the component.
This commit is contained in:
parent
ae1d028855
commit
8aed5fd517
1 changed files with 4 additions and 0 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue