summaryrefslogtreecommitdiff
path: root/packages/client/src/components
diff options
context:
space:
mode:
authorRichard "EpicKitty" Bowey <github@epickitty.uk>2021-11-26 04:39:57 +0000
committerGitHub <noreply@github.com>2021-11-26 13:39:57 +0900
commitdec7c4f722f2ac766b367fa5f1442a41f5e408b6 (patch)
tree67363d2fd4a4a14274fbada6fd7bceb2f6995858 /packages/client/src/components
parentUpdate README.md (diff)
downloadmisskey-dec7c4f722f2ac766b367fa5f1442a41f5e408b6.tar.gz
misskey-dec7c4f722f2ac766b367fa5f1442a41f5e408b6.tar.bz2
misskey-dec7c4f722f2ac766b367fa5f1442a41f5e408b6.zip
Implemented a rotate MFM (#8016)
Co-authored-by: Richard Bowey <me@epickitty.uk>
Diffstat (limited to 'packages/client/src/components')
-rw-r--r--packages/client/src/components/mfm.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/client/src/components/mfm.ts b/packages/client/src/components/mfm.ts
index d41cf6fc2b..d1da365d9a 100644
--- a/packages/client/src/components/mfm.ts
+++ b/packages/client/src/components/mfm.ts
@@ -184,6 +184,11 @@ export default defineComponent({
count, speed,
}, genEl(token.children));
}
+ case 'rotate': {
+ const degrees = parseInt(token.props.args.deg) || '90';
+ style = `transform: rotate(${degrees}deg); transform-origin: center center;`;
+ break;
+ }
}
if (style == null) {
return h('span', {}, ['$[', token.props.name, ' ', ...genEl(token.children), ']']);