Skip to content

Commit b709966

Browse files
authored
Merge pull request #325 from dev-five-git/webkit-line-clamp
Webkit line clamp
2 parents 6e5cffe + 3a35a5a commit b709966

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.changeset/sixty-files-swim.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/wasm": patch
3+
---
4+
5+
Fix webkit-line-clamp issue

apps/landing/src/app/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ export default function HomePage() {
8484
<VStack alignItems="center" gap="50px" maxW="800px" mx="auto">
8585
<VStack alignItems="center" gap="24px">
8686
<Image h="50px" src="/icon.svg" w="52px" />
87-
<Text color="$title" textAlign="center" typography="h1">
87+
<Text
88+
WebkitLineClamp={2}
89+
color="$title"
90+
textAlign="center"
91+
typography="h1"
92+
>
8893
Zero Config, Zero FOUC, Zero Runtime, CSS in JS Preprocessor
8994
</Text>
9095
<Text color="$text" textAlign="center" typography="h6Reg">

libs/extractor/src/extract_style/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ pub(super) static MAINTAIN_VALUE_PROPERTIES: phf::Set<&str> = phf_set! {
2121
"animation-iteration-count",
2222
"tab-size",
2323
"moz-tab-size",
24-
"webkit-line-clamp"
24+
"-webkit-line-clamp"
2525
};

libs/extractor/src/snapshots/extractor__tests__maintain_value.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ToBTreeSet {
1616
Static(
1717
ExtractStaticStyle {
1818
property: "-webkit-line-clamp",
19-
value: "16px",
19+
value: "4",
2020
level: 0,
2121
selector: None,
2222
style_order: None,

0 commit comments

Comments
 (0)