Skip to content

Commit 8ec3e37

Browse files
Prevent layout shift for product names
1 parent 2450c31 commit 8ec3e37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/views/listing/partials/item.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ class="mb-3 h-48 w-full rounded-t object-contain"
1414
/>
1515
<x-rapidez::no-image v-else class="mb-3 h-48 rounded-t" />
1616
<div>
17-
<x-rapidez::highlight attribute="name" class="text-base font-medium hover:underline decoration-2 "/>
17+
<div class="h-5 mb-2">
18+
<x-rapidez::highlight attribute="name" class="text-base font-medium line-clamp-1 hover:underline decoration-2"/>
19+
</div>
1820
@if (App::providerIsLoaded('Rapidez\Reviews\ReviewsServiceProvider'))
1921
<x-dynamic-component component="rapidez-reviews::stars" v-if="item.reviews_count" count="item.reviews_count" score="item.reviews_score" />
2022
@endif

0 commit comments

Comments
 (0)