From d106a91363f4d730ec29ebfabf3ad22cb77f5bfd Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Wed, 5 Feb 2020 17:58:51 +0100 Subject: [PATCH] fixs for light style --- .../mastodon/components/status_action_bar.js | 43 +++++----- app/javascript/styles/bliss.scss | 65 +++++++------- app/javascript/styles/bliss/variables.scss | 86 ++++++++++--------- .../styles/mastodon-light/diff.scss | 50 +++++++++++ .../styles/mastodon-light/variables.scss | 6 +- app/javascript/styles/mastodon/variables.scss | 34 +++----- 6 files changed, 170 insertions(+), 114 deletions(-) diff --git a/app/javascript/mastodon/components/status_action_bar.js b/app/javascript/mastodon/components/status_action_bar.js index f3ec1725a..4143f2b64 100644 --- a/app/javascript/mastodon/components/status_action_bar.js +++ b/app/javascript/mastodon/components/status_action_bar.js @@ -41,14 +41,19 @@ const messages = defineMessages({ unmute : { id: 'account.unmute', defaultMessage: 'Unmute @{name}' }, unblock : { id: 'account.unblock', defaultMessage: 'Unblock @{name}' }, }); - +const ObfuscateCountReplies = false; const obfuscatedCount = count => { - if (count < 0) { - return 0; - } else if (count <= 1) { - return count; + if (ObfuscateCountReplies) { + + if (count < 0) { + return 0; + } else if (count <= 1) { + return count; + } else { + return '1+'; + } } else { - return '1+'; + return count; } }; @@ -105,7 +110,7 @@ class StatusActionBar extends ImmutablePureComponent { } }; handleReplyUnderClick = () => { - this.props.showReplyFormUnder = true; + console.info('hop show'); }; handleShareClick = () => { @@ -235,6 +240,7 @@ class StatusActionBar extends ImmutablePureComponent { render() { const { status, relationship, intl, withDismiss } = this.props; + console.log('this.props', this.props); const mutingConversation = status.get('muted'); const anonymousAccess = !me; const publicStatus = ['public', 'unlisted'].includes(status.get('visibility')); @@ -374,25 +380,22 @@ class StatusActionBar extends ImmutablePureComponent { return (
- + - {this.props.showReplyFormUnder && ( - - yes - - )} - {obfuscatedCount(status.get('replies_count'))} - ({status.get('replies_count')}) + {/*{this.state.showReplyFormUnder && (*/} + {/* */} + {/* yes*/} + {/* */} + {/*)}*/} + {/*{obfuscatedCount(status.get('replies_count'))}*/} + + {obfuscatedCount(status.get('replies_count'))} +