Skip to content

Commit

Permalink
Merge pull request #251 from ZihxS/fix/posts-list-description
Browse files Browse the repository at this point in the history
fix: word break on posts list description
  • Loading branch information
deaafrizal authored Aug 4, 2022
2 parents 6f1483d + 51ee365 commit fdb4134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/Components/Homepage/PostsLists.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const isPosts = (posts, from) => {
<img src={`/storage/images/posts/${post.image}`} className="relative pt-2 md:pt-0 block md:max-h-72 w-auto h-auto min-w-full" />
}
<div className={`flex flex-col shadow-md p-4 justify-between h-auto hover:-translate-y-1 hover:bg-primary hover:text-primary-content`}>
<div className="text-md break-words">
<div className="text-md break-words break-all">
{post.image ? desc_with_image : desc_no_image}
{more && <span className="italic text-sm text-primary"> ...lebih lengkap</span>}
</div>
Expand Down

0 comments on commit fdb4134

Please sign in to comment.