Skip to content

Commit c3f2f21

Browse files
committed
fix: 修复部分显示bug
1 parent 1f4da07 commit c3f2f21

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

theme/components/PersonalInfo.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ export default {
7474
}
7575
7676
.left {
77+
text-align: center;
78+
7779
&[simple] {
7880
display: inline-block;
7981
width: 46%;

theme/components/PostInfo.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
</template>
1616
<!-- $page.excerpt -->
1717
<template v-else-if="post.excerpt">
18-
<div class="abstract" v-html="post.excerpt"></div>
18+
<div
19+
:class="$style.abstract"
20+
class="theme-default-content abstract"
21+
v-html="post.excerpt"
22+
></div>
1923
</template>
2024
<!-- <Content :post-key="post.key" slot-key="summary" /> -->
2125
</article>
@@ -87,5 +91,10 @@ export default {
8791
font-size: 1.2rem;
8892
}
8993
}
94+
95+
.abstract {
96+
padding: 0 0 1rem;
97+
max-width: none;
98+
}
9099
}
91100
</style>

theme/styles/code.styl

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
@require '~@default-theme/styles/code'
22

33
// fixed
4-
{$contentClass}
5-
div[class*="language-"]
6-
width: 100%;
7-
margin: 0.85rem auto;
4+
div[class*="language-"]
5+
width: 100%;
6+
margin: 0.85rem auto;
87

9-
.custom-style-wrapper.window-controls
10-
padding: 10px 0 0 10px;
8+
.custom-style-wrapper.window-controls
9+
padding: 10px 0 0 10px;
1110

1211
div[class*="language-"].line-numbers-mode {
1312
.line-numbers-wrapper {
1413
top: 28px;
1514
margin: 0.85rem 0;
15+
bottom: 0px;
1616
}
1717

1818
&:after {
19-
top: 34px;
20-
bottom: 34px;
19+
top: 46px;
20+
bottom: 0px;
21+
height: auto;
2122
}
2223
}

0 commit comments

Comments
 (0)