remove defaultStore check in MFM
This commit is contained in:
parent
a7045cecfb
commit
edc5638385
|
@ -255,17 +255,12 @@ export default defineComponent({
|
|||
break;
|
||||
}
|
||||
case "position": {
|
||||
if (!defaultStore.state.advancedMfm) break;
|
||||
const x = parseFloat(token.props.args.x ?? "0");
|
||||
const y = parseFloat(token.props.args.y ?? "0");
|
||||
style = `transform: translateX(${x}em) translateY(${y}em);`;
|
||||
break;
|
||||
}
|
||||
case "scale": {
|
||||
if (!defaultStore.state.advancedMfm) {
|
||||
style = "";
|
||||
break;
|
||||
}
|
||||
const x = Math.min(parseFloat(token.props.args.x ?? "1"), 5);
|
||||
const y = Math.min(parseFloat(token.props.args.y ?? "1"), 5);
|
||||
style = `transform: scale(${x}, ${y});`;
|
||||
|
|
Loading…
Reference in New Issue