@mitodl/smoot-design 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -78,6 +78,10 @@ const Avatar = styled_1.default.div(({ theme }) => ({
|
|
|
78
78
|
justifyContent: "center",
|
|
79
79
|
img: {
|
|
80
80
|
width: "66%",
|
|
81
|
+
// This is the default, but NextJS adds a height attribute to images
|
|
82
|
+
// The attr is useful for aspect ratio, but we want the actual CSS size to
|
|
83
|
+
// be auto.
|
|
84
|
+
height: "auto",
|
|
81
85
|
},
|
|
82
86
|
width: "32px",
|
|
83
87
|
height: "32px",
|
|
@@ -75,6 +75,10 @@ const Avatar = styled.div(({ theme }) => ({
|
|
|
75
75
|
justifyContent: "center",
|
|
76
76
|
img: {
|
|
77
77
|
width: "66%",
|
|
78
|
+
// This is the default, but NextJS adds a height attribute to images
|
|
79
|
+
// The attr is useful for aspect ratio, but we want the actual CSS size to
|
|
80
|
+
// be auto.
|
|
81
|
+
height: "auto",
|
|
78
82
|
},
|
|
79
83
|
width: "32px",
|
|
80
84
|
height: "32px",
|