fix: font size with points
This commit is contained in:
@@ -61,9 +61,11 @@ watch(article, () => {
|
||||
downloadFont(article.value.value.fontFamily)
|
||||
}
|
||||
|
||||
console.log("font size:", article.value?.value.fontSize)
|
||||
|
||||
if (article.value?.value.fontSize) {
|
||||
const root = document.documentElement
|
||||
root.style.setProperty("--font-size", article.value.value.fontSize)
|
||||
root.style.setProperty("--font-size", `${article.value.value.fontSize}pt`)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -126,6 +128,10 @@ watch(
|
||||
display: flex;
|
||||
flex: 1;
|
||||
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.badge {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user