File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
docs/.vitepress/theme/components Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff 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。
32322. 本仓库采用 [GitHub Actions](https://github.com/features/actions) 在每次提交时自动构建和部署。
3333
3434## 文档规范
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments