Skip to content

Commit fedecb7

Browse files
committed
small fixes in text block
1 parent f982149 commit fedecb7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/blocks/text/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ const text = function (el, config) {
145145

146146
if (parseInt(mbox.width) < parseInt(bbox.width) ||
147147
parseInt(mbox.height) < parseInt(bbox.height)) {
148-
fsize -= 0.05
148+
const vf = funit === 'px' ? 0.5 : 0.05
149+
fsize -= vf
149150
return setTimeout(compute)
150151
} else {
151152
setTimeout(() => {

src/blocks/text/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@
270270
background: var(--textAccent);
271271
color: var(--textColor);
272272
}
273-
.uppercase{
273+
.uppercase span{
274274
text-transform: uppercase;
275275
}
276-
.underline{
276+
.underline span{
277277
text-decoration: underline;
278278
text-decoration-color: var(--textColor);
279279
}

0 commit comments

Comments
 (0)