fix: ajout de la classe line-clamp pour limiter l'affichage de la description des mangas à 5 lignes dans le composant MangaHeader

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-03-31 16:06:32 +02:00
parent 787ba6caad
commit f06e6c1f61

View File

@@ -40,7 +40,7 @@
<HeartIcon class="h-6 w-6 text-red-500 mr-2" />
<span>{{ manga.rating }}</span>
</div>
<p>{{ manga.description }}</p>
<p class="line-clamp-5">{{ manga.description }}</p>
</div>
</div>
</div>
@@ -58,3 +58,17 @@
}
});
</script>
<style scoped>
/* Pour s'assurer que line-clamp fonctionne */
@supports (-webkit-line-clamp: 5) {
.line-clamp-5 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
line-clamp: 5;
-webkit-box-orient: vertical;
}
}
</style>