mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-25 15:46:06 +09:00
Merge pull request 'fix: MFM crop percentage parsing' (#10212) from ikiko/calckey:feat-mfm-crop into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10212
This commit is contained in:
commit
3d687351ef
@ -244,11 +244,11 @@ export default defineComponent({
|
||||
break;
|
||||
}
|
||||
case "crop": {
|
||||
const top = parseFloat(token.props.args.top ?? "0%");
|
||||
const right = parseFloat(token.props.args.right ?? "0%");
|
||||
const bottom = parseFloat(token.props.args.bottom ?? "0%");
|
||||
const left = parseFloat(token.props.args.left ?? "0%");
|
||||
style = `clip-path: inset(${top} ${right} ${bottom} ${left});`;
|
||||
const top = parseFloat(token.props.args.top ?? "0");
|
||||
const right = parseFloat(token.props.args.right ?? "0");
|
||||
const bottom = parseFloat(token.props.args.bottom ?? "0");
|
||||
const left = parseFloat(token.props.args.left ?? "0");
|
||||
style = `clip-path: inset(${top}% ${right}% ${bottom}% ${left}%);`;
|
||||
break;
|
||||
}
|
||||
case "scale": {
|
||||
|
Loading…
Reference in New Issue
Block a user