diff --git a/research-hub-web/src/app/components/activities-page/activities-page.component.html b/research-hub-web/src/app/components/activities-page/activities-page.component.html index 94c93ae31..cfb8cd4b3 100644 --- a/research-hub-web/src/app/components/activities-page/activities-page.component.html +++ b/research-hub-web/src/app/components/activities-page/activities-page.component.html @@ -1,45 +1,45 @@
-

{{ title }}

-

{{ description }}

-
+

{{ title }}

+

{{ description }}

+
-
-
-
diff --git a/research-hub-web/src/app/components/shared/body-media/body-media.component.html b/research-hub-web/src/app/components/shared/body-media/body-media.component.html index 10c19c99f..9ff3f28f6 100644 --- a/research-hub-web/src/app/components/shared/body-media/body-media.component.html +++ b/research-hub-web/src/app/components/shared/body-media/body-media.component.html @@ -6,9 +6,10 @@
- {{ contentItem.title }} + + + {{ contentItem.title }} +
{{ contentItem.title }}  — {{ contentItem.description }} diff --git a/research-hub-web/src/app/components/shared/cards/cards.component.html b/research-hub-web/src/app/components/shared/cards/cards.component.html index d2263bb8c..2297182fe 100644 --- a/research-hub-web/src/app/components/shared/cards/cards.component.html +++ b/research-hub-web/src/app/components/shared/cards/cards.component.html @@ -11,11 +11,10 @@

{{ title }} - {{ content.title }}-banner + + + {{ content.title }} +
diff --git a/research-hub-web/src/styles.scss b/research-hub-web/src/styles.scss index ae69cfd03..297817aa9 100644 --- a/research-hub-web/src/styles.scss +++ b/research-hub-web/src/styles.scss @@ -44,7 +44,7 @@ hr { } ul li { position: relative; - line-height:30px; + line-height: 30px; padding-left: 1em; list-style-type: disc; p { @@ -388,3 +388,17 @@ h2.maori-proverb { } } } + +/** + * Fix picture tag on mat card top margin globally + * mat-card currently doesn't handle picture tags very nicely. + * By default, mat-card applied a style to an img element to remove top-margin. + * The style doesn't get applied automatically for img within picture so we apply it globally here. + * https://github.com/angular/components/blob/6e1f522d6a50d6f589d069775bc771b5590bff4c/src/material/card/card.scss#L191 + * I created a bug report here https://github.com/angular/components/issues/23649 + */ +mat-card picture:first-child img.mat-card-image { + margin-top: -16px; + border-top-left-radius: inherit; + border-top-right-radius: inherit; +}