forked from FoundKeyGang/FoundKey
simplify MFM position CSS
This commit is contained in:
parent
a72f4300aa
commit
3f9b09e3e7
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ export default defineComponent({
|
||||||
case 'position': {
|
case 'position': {
|
||||||
const x = parseFloat(token.props.args.x ?? '0');
|
const x = parseFloat(token.props.args.x ?? '0');
|
||||||
const y = parseFloat(token.props.args.y ?? '0');
|
const y = parseFloat(token.props.args.y ?? '0');
|
||||||
style = `transform: translateX(${x}em) translateY(${y}em);`;
|
style = `transform: translate(${x}em, ${y}em);`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'scale': {
|
case 'scale': {
|
||||||
|
|
Loading…
Reference in a new issue