summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-01-31 12:24:14 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-01-31 12:24:14 +0900
commitbbdb2496a46dbf264d18eb770f27821867b7b5b1 (patch)
tree592ee8160edf44a0e1cd39ac77d5a1d0ab2ec472 /src
parent[MFM] Better syntax parsing (diff)
downloadsharkey-bbdb2496a46dbf264d18eb770f27821867b7b5b1.tar.gz
sharkey-bbdb2496a46dbf264d18eb770f27821867b7b5b1.tar.bz2
sharkey-bbdb2496a46dbf264d18eb770f27821867b7b5b1.zip
[Client] MFMの制限を緩和
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/mfm.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/mfm.ts b/src/client/app/common/views/components/mfm.ts
index 86ae11fd40..bf013923a8 100644
--- a/src/client/app/common/views/components/mfm.ts
+++ b/src/client/app/common/views/components/mfm.ts
@@ -126,7 +126,7 @@ export default Vue.component('misskey-flavored-markdown', {
case 'spin': {
motionCount++;
- const isLong = sumTextsLength(token.children) > 5 || countNodesF(token.children) > 3;
+ const isLong = sumTextsLength(token.children) > 10 || countNodesF(token.children) > 5;
const isMany = motionCount > 5;
const direction =
token.node.props.attr == 'left' ? 'reverse' :
@@ -144,7 +144,7 @@ export default Vue.component('misskey-flavored-markdown', {
case 'jump': {
motionCount++;
- const isLong = sumTextsLength(token.children) > 5 || countNodesF(token.children) > 3;
+ const isLong = sumTextsLength(token.children) > 30 || countNodesF(token.children) > 5;
const isMany = motionCount > 5;
return (createElement as any)('span', {
attrs: {