From 73acf02e08cd212668fb4136fc1a228589fc2e70 Mon Sep 17 00:00:00 2001 From: Yuhuai Liu Date: Wed, 23 Aug 2023 11:19:20 -0400 Subject: [PATCH 1/2] fix styling for open resources badges --- .../search-result-card/template.hbs | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/osf-components/addon/components/search-result-card/template.hbs b/lib/osf-components/addon/components/search-result-card/template.hbs index f824d73f65..579b898803 100644 --- a/lib/osf-components/addon/components/search-result-card/template.hbs +++ b/lib/osf-components/addon/components/search-result-card/template.hbs @@ -65,15 +65,17 @@ {{/if}} {{#if (or (eq @result.resourceType 'registration') (eq @result.resourceType 'registration_component'))}} - +
+ +
{{/if}} From 2de57aafcb6c0f7e91d1ccf8f89522a564cf515e Mon Sep 17 00:00:00 2001 From: Yuhuai Liu Date: Wed, 23 Aug 2023 11:30:49 -0400 Subject: [PATCH 2/2] fix linting --- .../addon/components/search-page/styles.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/osf-components/addon/components/search-page/styles.scss b/lib/osf-components/addon/components/search-page/styles.scss index 9b982e8980..91572e8501 100644 --- a/lib/osf-components/addon/components/search-page/styles.scss +++ b/lib/osf-components/addon/components/search-page/styles.scss @@ -213,6 +213,10 @@ body { // prevent overriding popover styling white-space: wrap; text-align: initial; + display: flex; + flex-direction: column; + justify-content: space-around; + margin-left: -0.2rem; a { font-weight: bold; @@ -222,11 +226,6 @@ body { .enumeration { float: left; } - - display: flex; - flex-direction: column; - justify-content: space-around; - margin-left: -0.2rem; h2 { font-weight: 400;