mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
fix: MFM crop percentage parsing
This commit is contained in:
parent
62fce3a32e
commit
3b5a680fdf
1 changed files with 5 additions and 5 deletions
|
@ -244,11 +244,11 @@ export default defineComponent({
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "crop": {
|
case "crop": {
|
||||||
const top = parseFloat(token.props.args.top ?? "0%");
|
const top = parseFloat(token.props.args.top ?? "0");
|
||||||
const right = parseFloat(token.props.args.right ?? "0%");
|
const right = parseFloat(token.props.args.right ?? "0");
|
||||||
const bottom = parseFloat(token.props.args.bottom ?? "0%");
|
const bottom = parseFloat(token.props.args.bottom ?? "0");
|
||||||
const left = parseFloat(token.props.args.left ?? "0%");
|
const left = parseFloat(token.props.args.left ?? "0");
|
||||||
style = `clip-path: inset(${top} ${right} ${bottom} ${left});`;
|
style = `clip-path: inset(${top}% ${right}% ${bottom}% ${left}%);`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "scale": {
|
case "scale": {
|
||||||
|
|
Loading…
Reference in a new issue