1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-02-03 23:23:09 +00:00

Adjust font size in HitokotoCard component

This commit is contained in:
Sunwuyuan 2025-12-25 17:50:43 +08:00 committed by GitHub
parent 7bbae7fd73
commit d2db187bf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ export default {
computed: {
contentStyle() {
return {
'font-size': `${this.fontSize}px`,
'font-size': `${this.fontSize-4}px`,
'white-space': 'pre-wrap',
'line-height': '1.6',
'text-align': 'left'
@ -81,7 +81,7 @@ export default {
authorStyle() {
const AUTHOR_FONT_RATIO = 0.6 // Author font size is 60% of the main font size
return {
'font-size': `${this.fontSize * AUTHOR_FONT_RATIO}px`,
'font-size': `${(this.fontSize-4 )* AUTHOR_FONT_RATIO}px`,
'text-align': 'left'
}
}