mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
fix: text overflow on RecipeCard (#1830)
* fix the text overflow on RecipeCard * add a wrapper class for description text for recipes
This commit is contained in:
parent
01aac0ca5d
commit
ac6554efdd
1 changed files with 9 additions and 1 deletions
|
@ -19,7 +19,9 @@
|
|||
<v-expand-transition v-if="description">
|
||||
<div v-if="hover" class="d-flex transition-fast-in-fast-out secondary v-card--reveal" style="height: 100%">
|
||||
<v-card-text class="v-card--text-show white--text">
|
||||
{{ description }}
|
||||
<div class="descriptionWrapper">
|
||||
{{ description}}
|
||||
</div>
|
||||
</v-card-text>
|
||||
</div>
|
||||
</v-expand-transition>
|
||||
|
@ -143,4 +145,10 @@ export default defineComponent({
|
|||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.descriptionWrapper{
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 8;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue