Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nelyaklyusa committed Jun 20, 2024
1 parent 378c046 commit b9048dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/BaseImage/BaseImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down
10 changes: 7 additions & 3 deletions src/components/common/PostItem/PostItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ const route = computed(() => (props.data.route ? props.data.route : props.defaul
<p
class="post-item__excerpt is--body"
itemprop="description"
>
{{ data.description }}
</p>
v-html="data.description"
/>
</div>
<div
v-if="$slots.img"
Expand Down Expand Up @@ -189,6 +188,11 @@ const route = computed(() => (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
</style>

Expand Down

0 comments on commit b9048dc

Please sign in to comment.