Skip to content

Commit

Permalink
fix: fixed SakuraPostCard mobile style
Browse files Browse the repository at this point in the history
  • Loading branch information
WRXinYue committed Jan 10, 2025
1 parent f9271bc commit cb739c9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion theme/components/SakuraPostCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const cover = computed(() => props.post.cover || defaultImage.value)
</slot>
</div>
<slot name="content-extend">
<div class="mashiro-dots-container absolute!">
<div class="mashiro-dots-container absolute! <md:hidden">
<SakuraDots />
</div>
</slot>
Expand Down Expand Up @@ -113,8 +113,16 @@ const cover = computed(() => props.post.cover || defaultImage.value)
padding: var(--sakura-post-card-content-py)
var(--sakura-post-card-content-px);
@include mobile {
padding-inline: var(--sakura-post-card-content-py);
}
&.has-cover {
width: calc(100% - var(--sakura-post-card-img-width));
@include mobile {
width: 100%;
}
}
}
Expand All @@ -124,6 +132,7 @@ const cover = computed(() => props.post.cover || defaultImage.value)
@include mobile {
width: 100%;
border-radius: var(--sakura-post-card-rd);
}
}
Expand Down

0 comments on commit cb739c9

Please sign in to comment.