Skip to content
Snippets Groups Projects
Unverified Commit 645f6619 authored by syuilo's avatar syuilo
Browse files

[Client] Resolve #3638

parent db7c83c8
No related merge requests found
......@@ -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;'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment