mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-02-04 07:53:11 +00:00
Adjust font size in HitokotoCard component
This commit is contained in:
parent
7bbae7fd73
commit
d2db187bf4
@ -72,7 +72,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
contentStyle() {
|
contentStyle() {
|
||||||
return {
|
return {
|
||||||
'font-size': `${this.fontSize}px`,
|
'font-size': `${this.fontSize-4}px`,
|
||||||
'white-space': 'pre-wrap',
|
'white-space': 'pre-wrap',
|
||||||
'line-height': '1.6',
|
'line-height': '1.6',
|
||||||
'text-align': 'left'
|
'text-align': 'left'
|
||||||
@ -81,7 +81,7 @@ export default {
|
|||||||
authorStyle() {
|
authorStyle() {
|
||||||
const AUTHOR_FONT_RATIO = 0.6 // Author font size is 60% of the main font size
|
const AUTHOR_FONT_RATIO = 0.6 // Author font size is 60% of the main font size
|
||||||
return {
|
return {
|
||||||
'font-size': `${this.fontSize * AUTHOR_FONT_RATIO}px`,
|
'font-size': `${(this.fontSize-4 )* AUTHOR_FONT_RATIO}px`,
|
||||||
'text-align': 'left'
|
'text-align': 'left'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user