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:
parent
7bbae7fd73
commit
d2db187bf4
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user