From b9048dc8772f8d8e6089597c417705356dec8820 Mon Sep 17 00:00:00 2001 From: nelyaklyusa Date: Thu, 20 Jun 2024 15:31:14 +0300 Subject: [PATCH] small fix --- src/components/BaseImage/BaseImage.vue | 2 +- src/components/common/PostItem/PostItem.vue | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/BaseImage/BaseImage.vue b/src/components/BaseImage/BaseImage.vue index 183f6d9..8734005 100644 --- a/src/components/BaseImage/BaseImage.vue +++ b/src/components/BaseImage/BaseImage.vue @@ -5,7 +5,7 @@ import { ref } from 'vue'; const props = withDefaults(defineProps<{ src: string | undefined, alt: string, - fit: 'cover' | 'contain' | 'inherit' + fit?: 'cover' | 'contain' | 'inherit' }>(), { fit: 'cover', }); diff --git a/src/components/common/PostItem/PostItem.vue b/src/components/common/PostItem/PostItem.vue index fa48e1a..add1df1 100644 --- a/src/components/common/PostItem/PostItem.vue +++ b/src/components/common/PostItem/PostItem.vue @@ -55,9 +55,8 @@ const route = computed(() => (props.data.route ? props.data.route : props.defaul

- {{ data.description }} -

+ v-html="data.description" + />
(props.data.route ? props.data.route : props.defaul &__excerpt color: $gray-80 + display: -webkit-box + -webkit-line-clamp: 2 + -webkit-box-orient: vertical + overflow: hidden + text-overflow: ellipsis