Skip to content

Commit

Permalink
perf(theme): 博客页无博主信息时布局优化
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Mar 15, 2024
1 parent 6912c0e commit 9370464
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions theme/src/client/components/Blog/Archives.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,10 @@ const { archives } = useArchives()
transition: border-bottom var(--t-color);
}
}
@media (min-width: 1200px) {
.archives-wrapper {
margin-left: 0;
}
}
</style>
6 changes: 6 additions & 0 deletions theme/src/client/components/Blog/PostItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ const createTime = computed(() =>
}
}
@media (min-width: 1200px) {
.post-item {
margin: 0 0 24px;
}
}
.post-meta {
display: flex;
flex-wrap: wrap;
Expand Down
6 changes: 6 additions & 0 deletions theme/src/client/components/Blog/Tags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,10 @@ const { tags: tagsLink } = useBlogExtract()
margin-top: 0;
}
}
@media (min-width: 1200px) {
.tags-wrapper {
margin-left: 0;
}
}
</style>

0 comments on commit 9370464

Please sign in to comment.