[Client] Resolve #3638
This commit is contained in:
parent
db7c83c8ff
commit
645f661911
1 changed files with 5 additions and 5 deletions
|
@ -84,7 +84,7 @@ export default Vue.component('misskey-flavored-markdown', {
|
||||||
|
|
||||||
case 'big': {
|
case 'big': {
|
||||||
bigCount++;
|
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;
|
const isMany = bigCount > 3;
|
||||||
return (createElement as any)('strong', {
|
return (createElement as any)('strong', {
|
||||||
attrs: {
|
attrs: {
|
||||||
|
@ -111,8 +111,8 @@ export default Vue.component('misskey-flavored-markdown', {
|
||||||
|
|
||||||
case 'motion': {
|
case 'motion': {
|
||||||
motionCount++;
|
motionCount++;
|
||||||
const isLong = sumTextsLength(token.children) > 10 || countNodesF(token.children) > 5;
|
const isLong = sumTextsLength(token.children) > 15 || countNodesF(token.children) > 5;
|
||||||
const isMany = motionCount > 3;
|
const isMany = motionCount > 5;
|
||||||
return (createElement as any)('span', {
|
return (createElement as any)('span', {
|
||||||
attrs: {
|
attrs: {
|
||||||
style: 'display: inline-block;'
|
style: 'display: inline-block;'
|
||||||
|
@ -127,7 +127,7 @@ export default Vue.component('misskey-flavored-markdown', {
|
||||||
case 'spin': {
|
case 'spin': {
|
||||||
motionCount++;
|
motionCount++;
|
||||||
const isLong = sumTextsLength(token.children) > 5 || countNodesF(token.children) > 3;
|
const isLong = sumTextsLength(token.children) > 5 || countNodesF(token.children) > 3;
|
||||||
const isMany = motionCount > 3;
|
const isMany = motionCount > 5;
|
||||||
const direction =
|
const direction =
|
||||||
token.node.props.attr == 'left' ? 'reverse' :
|
token.node.props.attr == 'left' ? 'reverse' :
|
||||||
token.node.props.attr == 'alternate' ? 'alternate' :
|
token.node.props.attr == 'alternate' ? 'alternate' :
|
||||||
|
@ -145,7 +145,7 @@ export default Vue.component('misskey-flavored-markdown', {
|
||||||
case 'jump': {
|
case 'jump': {
|
||||||
motionCount++;
|
motionCount++;
|
||||||
const isLong = sumTextsLength(token.children) > 5 || countNodesF(token.children) > 3;
|
const isLong = sumTextsLength(token.children) > 5 || countNodesF(token.children) > 3;
|
||||||
const isMany = motionCount > 3;
|
const isMany = motionCount > 5;
|
||||||
return (createElement as any)('span', {
|
return (createElement as any)('span', {
|
||||||
attrs: {
|
attrs: {
|
||||||
style: (this.$store.state.settings.disableAnimatedMfm || isLong || isMany) ? 'display: inline-block;' : 'display: inline-block; animation: jump 0.75s linear infinite;'
|
style: (this.$store.state.settings.disableAnimatedMfm || isLong || isMany) ? 'display: inline-block;' : 'display: inline-block; animation: jump 0.75s linear infinite;'
|
||||||
|
|
Loading…
Reference in a new issue