summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-01-27 22:04:50 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-01-27 22:04:50 +0900
commit645f661911c9e36acfb2a419b38189d41e3dace2 (patch)
tree1589181a3acf69f70ce1d3e79aa3133284c2a67b /src
parenttouch yarn.lock (diff)
downloadmisskey-645f661911c9e36acfb2a419b38189d41e3dace2.tar.gz
misskey-645f661911c9e36acfb2a419b38189d41e3dace2.tar.bz2
misskey-645f661911c9e36acfb2a419b38189d41e3dace2.zip
[Client] Resolve #3638
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/mfm.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/app/common/views/components/mfm.ts b/src/client/app/common/views/components/mfm.ts
index 1cf7752cbd..d734680bfe 100644
--- a/src/client/app/common/views/components/mfm.ts
+++ b/src/client/app/common/views/components/mfm.ts
@@ -84,7 +84,7 @@ export default Vue.component('misskey-flavored-markdown', {
case 'big': {
bigCount++;
- const isLong = sumTextsLength(token.children) > 10 || countNodesF(token.children) > 5;
+ const isLong = sumTextsLength(token.children) > 15 || countNodesF(token.children) > 5;
const isMany = bigCount > 3;
return (createElement as any)('strong', {
attrs: {
@@ -111,8 +111,8 @@ export default Vue.component('misskey-flavored-markdown', {
case 'motion': {
motionCount++;
- const isLong = sumTextsLength(token.children) > 10 || countNodesF(token.children) > 5;
- const isMany = motionCount > 3;
+ const isLong = sumTextsLength(token.children) > 15 || countNodesF(token.children) > 5;
+ const isMany = motionCount > 5;
return (createElement as any)('span', {
attrs: {
style: 'display: inline-block;'
@@ -127,7 +127,7 @@ export default Vue.component('misskey-flavored-markdown', {
case 'spin': {
motionCount++;
const isLong = sumTextsLength(token.children) > 5 || countNodesF(token.children) > 3;
- const isMany = motionCount > 3;
+ const isMany = motionCount > 5;
const direction =
token.node.props.attr == 'left' ? 'reverse' :
token.node.props.attr == 'alternate' ? 'alternate' :
@@ -145,7 +145,7 @@ export default Vue.component('misskey-flavored-markdown', {
case 'jump': {
motionCount++;
const isLong = sumTextsLength(token.children) > 5 || countNodesF(token.children) > 3;
- const isMany = motionCount > 3;
+ const isMany = motionCount > 5;
return (createElement as any)('span', {
attrs: {
style: (this.$store.state.settings.disableAnimatedMfm || isLong || isMany) ? 'display: inline-block;' : 'display: inline-block; animation: jump 0.75s linear infinite;'