From 997375a927fd9525f1991cf15d56cc7bbc6a3da1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 27 Sep 2021 15:03:20 -0500 Subject: [PATCH] DetailedStatus: fix rounded corners --- app/soapbox/features/status/index.js | 12 ++++++++---- app/styles/components/detailed-status.scss | 13 +++++-------- 2 files changed, 13 insertions(+), 12 deletions(-) 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; }