Skip to content

Commit

Permalink
fix: break-words on blog snippet (#117)
Browse files Browse the repository at this point in the history
Before:

<img width="408" alt="Screenshot 2025-01-31 at 10 19 29"
src="https://github.com/user-attachments/assets/4d731e24-88ed-4065-ae14-d29ddb6827e7"
/>

After:

<img width="414" alt="Screenshot 2025-01-31 at 10 19 21"
src="https://github.com/user-attachments/assets/4a3a15cc-4bef-497b-a3ea-5dca8ef8a46a"
/>
  • Loading branch information
alanshaw authored Jan 31, 2025
1 parent 3585162 commit 401f62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Blog/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defineProps<{
<time class="h5 text-sm" :datetime="item.pubDate">
{{ useAppDateFormat(item.pubDate) }}
</time>
<p v-if="showSnippet" class="text-base p1">
<p v-if="showSnippet" class="text-base p1 break-words">
{{ item.snippet }}
</p>
</div>
Expand Down

0 comments on commit 401f62b

Please sign in to comment.