Skip to content

Commit 9aa9b3e

Browse files
committed
[[post]] fixed font size handling for composition
1 parent 01cb1b9 commit 9aa9b3e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ui/packages/post/PostCompose.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ const PostCompose = {
3535
m.redraw()
3636
})
3737
}
38+
39+
patchfox.listen(
40+
"preferences:changed",
41+
() => {
42+
m.redraw()
43+
})
3844
},
3945
oncreate: vnode => {
4046
// this code could be in some better/smarter place.
@@ -132,10 +138,6 @@ const PostCompose = {
132138
window.scrollTo(0,0)
133139
}
134140

135-
136-
// TODO: This function is duplicated.
137-
// O problema é passar o vnode nessa função caso ela esteja fora.
138-
139141
const readFileAndAttach = files => {
140142
try {
141143
vnode.state.error = false

0 commit comments

Comments
 (0)