Skip to content

Commit a8eb90f

Browse files
committed
Merge branch 'main' of https://github.com/Mdr-C-Tutorial/C
2 parents 041289f + 2c77ac2 commit a8eb90f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int main(int argc, char* argv[]){
2828
2929
## 构建与部署
3030
31-
1. 本文档使用 [VitePress](https://vitejs.cn/vitepress/) 构建,需最新版 yarn 以在本地 build 和 dev。
31+
1. 本文档使用 [VitePress](https://vitejs.cn/vitepress/) 构建,需最新版 pnpm 以在本地 build 和 dev。
3232
2. 本仓库采用 [GitHub Actions](https://github.com/features/actions) 在每次提交时自动构建和部署。
3333
3434
## 文档规范

docs/.vitepress/theme/components/CodeCompare.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ defineProps({
6969
border: 1px solid var(--vp-c-divider);
7070
background-color: var(--vp-c-bg-soft);
7171
height: 100%;
72+
display: flex;
73+
flex-direction: column;
7274
}
7375
7476
.pane-header {
@@ -92,9 +94,15 @@ defineProps({
9294
color: #349d6e;
9395
}
9496
97+
.pane-content{
98+
flex: 100%;
99+
display: flex;
100+
}
95101
/* 调整插槽内代码块的 margin,使其贴合容器 */
96102
.pane-content :deep(div[class*='language-']) {
97103
margin: 0 !important;
98104
border-radius: 0 !important;
105+
display: flex;
106+
flex: 100%;
99107
}
100108
</style>

0 commit comments

Comments
 (0)