perf: 优化标签、归档页布局

This commit is contained in:
pengzhanbo 2024-02-11 02:24:35 +08:00
parent b4057e3820
commit a34a216f90
4 changed files with 3 additions and 14 deletions

View File

@ -95,10 +95,4 @@ const { archives } = useArchives()
transition: border-bottom var(--t-color);
}
}
@media (min-width: 1200px) {
.archives-wrapper {
margin-left: 0;
}
}
</style>

View File

@ -56,9 +56,9 @@ const hasMeta = computed(() => readingTime.value.time || tags.value.length || cr
<span v-if="index !== categoryList.length - 1" class="dot">&rsaquo;</span>
</template>
</div>
<h2 v-if="page.isBlogPost" class="page-title" :class="{ padding: !hasMeta }">
<h1 v-if="page.isBlogPost" class="page-title" :class="{ padding: !hasMeta }">
{{ page.title }}
</h2>
</h1>
<div v-if="hasMeta" class="page-meta-wrapper">
<p v-if="readingTime.time" class="reading-time">
<IconBooks class="icon" />

View File

@ -149,10 +149,4 @@ const { tags: tagsLink } = useBlogExtract()
margin-top: 0;
}
}
@media (min-width: 1200px) {
.tags-wrapper {
margin-left: 0;
}
}
</style>

View File

@ -9,6 +9,7 @@
.plume-content h5,
.plume-content h6 {
position: relative;
margin: 16px 0;
font-weight: 600;
color: var(--vp-c-text-1);
overflow-wrap: break-word;