mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 23:51:01 -07:00
remove defaultStore check in MFM
This commit is contained in:
parent
c32128c2da
commit
8d052f8e0e
1 changed files with 0 additions and 5 deletions
|
@ -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 a new issue