Skip to content

Commit

Permalink
truncated dataset description
Browse files Browse the repository at this point in the history
  • Loading branch information
egauzens committed Aug 29, 2024
1 parent 0fca0c4 commit b5bdf79
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions components/Gallery/GalleryItems/RelatedDatasetCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
>
{{ datasetTitle }}
</nuxt-link>-->
<div>
<div class="description-container mb-4">
{{ datasetDescription }}
</div>
<nuxt-link
Expand Down Expand Up @@ -78,9 +78,17 @@ export default {
.banner-image {
display: block;
width: 100%;
max-height: 200px;
max-height: 150px;
object-fit: contain;
}
.dataset-name {
overflow-wrap: anywhere;
}
.description-container {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 6;
}
</style>

0 comments on commit b5bdf79

Please sign in to comment.