Skip to content

Commit 4b1bb2c

Browse files
committed
tweak og-image template: working as expected now
1 parent c8099bf commit 4b1bb2c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/utils/og-template.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default (
1515
height: "100%",
1616
// 背景色: --color-warm-night-800 -> #2a211e
1717
backgroundColor: "#2a211e",
18-
fontFamily: '"IBM Plex Sans", sans-serif'
18+
position: "relative"
1919
}}
2020
>
2121
<div
@@ -62,10 +62,11 @@ export default (
6262
fontWeight: 700,
6363
lineHeight: 1.2,
6464
letterSpacing: "-0.02em",
65-
display: "-webkit-box",
66-
lineClamp: 3,
6765
overflow: "hidden",
68-
textOverflow: "ellipsis"
66+
textOverflow: "ellipsis",
67+
display: "-webkit-box",
68+
WebkitBoxOrient: "vertical",
69+
WebkitLineClamp: 3
6970
}}
7071
>
7172
{title}
@@ -78,10 +79,11 @@ export default (
7879
lineHeight: 1.3,
7980
marginTop: "16px",
8081
letterSpacing: "-0.01em",
81-
display: "-webkit-box",
82-
lineClamp: 2,
8382
overflow: "hidden",
84-
textOverflow: "ellipsis"
83+
textOverflow: "ellipsis",
84+
display: "-webkit-box",
85+
WebkitBoxOrient: "vertical",
86+
WebkitLineClamp: 2
8587
}}
8688
>
8789
{description}

0 commit comments

Comments
 (0)