{{ 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;
+}