Skip to content

Commit ca1db21

Browse files
committed
feat: line-clamp, text-overflow 대비하여 title 속성 추가
1 parent 8628a8e commit ca1db21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/PostCard/PostCard.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
{{ post.frontmatter.title }}
66
</h3>
77

8-
<p class="blog-card-description">
8+
<p
9+
ref="descriptionRef"
10+
class="blog-card-description"
11+
:title="post.frontmatter.description"
12+
>
913
{{ post.frontmatter.description }}
1014
</p>
1115

0 commit comments

Comments
 (0)