sfc-utils 1.4.63 → 1.4.64
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.
- package/components/byline.mjs +5 -3
- package/package.json +1 -1
package/components/byline.mjs
CHANGED
|
@@ -16,9 +16,11 @@ const Byline = ({ meta, updateNote, updatePrefix, ReplacementTime }) => {
|
|
|
16
16
|
// check the width of the byline wrapper. if it's less than @md or 672px,
|
|
17
17
|
// change the display type to "block" to avoid large white spaces with
|
|
18
18
|
// the gift button
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
bylineContainer.
|
|
19
|
+
if (typeof window !== "undefined" && typeof document !== "undefined") {
|
|
20
|
+
let bylineContainer = document.getElementById("byline-wrapper")
|
|
21
|
+
if (bylineContainer && bylineContainer.offsetWidth < 672) {
|
|
22
|
+
bylineContainer.style.display = "block"
|
|
23
|
+
}
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
return (
|