Skip to content

Commit faa6446

Browse files
committed
enhance: render ellipsis on long dynamic text
1 parent edd4aaa commit faa6446

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changeset/witty-humans-dream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vnphanquang/green-check': patch
3+
---
4+
5+
ellipsis on long dynamic texts

src/template.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ svg {
9191
}
9292

9393
.content p {
94+
overflow: hidden;
9495
min-height: 9px;
96+
text-overflow: ellipsis;
97+
white-space: nowrap;
9598
}
9699

97100
.content p:not(:first-child) {

0 commit comments

Comments
 (0)