diff --git a/src/components/ScreenTemplateCard.vue b/src/components/ScreenTemplateCard.vue
index 56c12bff5..fe7c0df3e 100644
--- a/src/components/ScreenTemplateCard.vue
+++ b/src/components/ScreenTemplateCard.vue
@@ -26,7 +26,7 @@
{{ template.name }}
{{
- template.description
+ truncateText(template.description, 100)
}}
@@ -178,6 +178,10 @@ export default {
} else {
this.selected.splice(index, 1);
}
+ },
+ truncateText(text, limit) {
+ if (!text) return "";
+ return text.length > limit ? `${text.substring(0, limit)}...` : text;
}
}
};
@@ -213,10 +217,14 @@ export default {
.thumbnail-image {
width: 100%;
+ height: 100%;
+ object-fit: cover;
border-radius: 8px 8px 0px 0px;
}
.thumbnail-image-container {
+ width: 100%;
+ height: 107px;
border-radius: 8px;
padding: 0px !important;
background-size: contain;