diff --git a/app/soapbox/features/status/index.js b/app/soapbox/features/status/index.js index b826a1281..af17aa7ed 100644 --- a/app/soapbox/features/status/index.js +++ b/app/soapbox/features/status/index.js @@ -548,11 +548,11 @@ class Status extends ImmutablePureComponent { } if (ancestorsIds && ancestorsIds.size > 0) { - ancestors =
{this.renderChildren(ancestorsIds)}
; + ancestors = this.renderChildren(ancestorsIds); } if (descendantsIds && descendantsIds.size > 0) { - descendants =
{this.renderChildren(descendantsIds)}
; + descendants = this.renderChildren(descendantsIds); } const handlers = { @@ -596,7 +596,9 @@ class Status extends ImmutablePureComponent { */}
- {ancestors} + {ancestors && ( +
{ancestors}
+ )}
@@ -638,7 +640,9 @@ class Status extends ImmutablePureComponent {
- {descendants} + {descendants && ( +
{descendants}
+ )}
); diff --git a/app/styles/components/detailed-status.scss b/app/styles/components/detailed-status.scss index f139a512b..bd0ae82a3 100644 --- a/app/styles/components/detailed-status.scss +++ b/app/styles/components/detailed-status.scss @@ -160,12 +160,9 @@ margin-right: 5px; } -.detailed-status-container { - > div:first-child { - .status-container .status__wrapper, - .detailed-status__wrapper { - border-top-left-radius: 0; - border-top-right-radius: 0; - } - } +/* Connect the first status to the SubNavigation */ +.detailed-status__ancestors .status-container:first-child .status__wrapper, +.detailed-status-container > div:first-child .detailed-status__wrapper { + border-top-left-radius: 0; + border-top-right-radius: 0; }