Skip to content

Commit 67891bd

Browse files
committed
feat(mermaid): align mermaid diagrams at center
1 parent c79bc1c commit 67891bd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.vitepress/theme/pages/Layout.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
</Layout>
1212
</template>
1313

14-
<script
15-
lang="ts"
16-
setup
17-
>
14+
<script lang="ts" setup>
1815
import DefaultTheme from "vitepress/theme";
1916
import Annotations from "../components/Annotations.vue";
2017
import PrevNext from "../components/PrevNext.vue";
@@ -88,6 +85,11 @@ img.inline-img {
8885
border: 3px solid var(--vp-c-default-1);
8986
}
9087
88+
.mermaid {
89+
display: flex;
90+
justify-content: center;
91+
}
92+
9193
/* image subtitle */
9294
figure figcaption {
9395
margin-bottom: 1.5rem;

0 commit comments

Comments
 (0)