From f1d31cf18d247be9805d2a3865768a409517c9b0 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Mon, 24 Aug 2020 18:32:03 +0200 Subject: [PATCH] Fix spacing around reblog counter in detailed statuses And bring the whole thing closer to upstream's code. --- .../status/components/detailed_status.js | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index 2d878675c5..e4aecbf94d 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -192,9 +192,11 @@ export default class DetailedStatus extends ImmutablePureComponent { } if (status.get('application')) { - applicationLink = · {status.getIn(['application', 'name'])}; + applicationLink = · {status.getIn(['application', 'name'])}; } + const visibilityLink = · ; + if (status.get('visibility') === 'direct') { reblogIcon = 'envelope'; } else if (status.get('visibility') === 'private') { @@ -205,21 +207,27 @@ export default class DetailedStatus extends ImmutablePureComponent { reblogLink = null; } else if (this.context.router) { reblogLink = ( - - - - - - + + · + + + + + + + ); } else { reblogLink = ( - - - - - - + + · + + + + + + + ); } @@ -245,7 +253,7 @@ export default class DetailedStatus extends ImmutablePureComponent { return (
-
+
@@ -268,7 +276,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
- {applicationLink} {!!reblogLink && ['·', reblogLink]} · {favouriteLink} · + {visibilityLink}{applicationLink}{reblogLink} · {favouriteLink}