mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-02-04 07:53:11 +00:00
Make Hitokoto font size smaller (85% of general font size)
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
This commit is contained in:
parent
319ba48c2f
commit
1ca0606485
@ -71,17 +71,19 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
contentStyle() {
|
||||
const HITOKOTO_FONT_RATIO = 0.85 // Hitokoto font size is 85% of the general font size
|
||||
return {
|
||||
'font-size': `${this.fontSize}px`,
|
||||
'font-size': `${this.fontSize * HITOKOTO_FONT_RATIO}px`,
|
||||
'white-space': 'pre-wrap',
|
||||
'line-height': '1.6',
|
||||
'text-align': 'left'
|
||||
}
|
||||
},
|
||||
authorStyle() {
|
||||
const HITOKOTO_FONT_RATIO = 0.85 // Hitokoto font size is 85% of the general font size
|
||||
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 * HITOKOTO_FONT_RATIO * AUTHOR_FONT_RATIO}px`,
|
||||
'text-align': 'left'
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user