Skip to content

Commit

Permalink
feat(mermaid): align mermaid diagrams at center
Browse files Browse the repository at this point in the history
  • Loading branch information
Octobug committed Dec 21, 2024
1 parent c79bc1c commit 67891bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .vitepress/theme/pages/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
</Layout>
</template>

<script
lang="ts"
setup
>
<script lang="ts" setup>
import DefaultTheme from "vitepress/theme";
import Annotations from "../components/Annotations.vue";
import PrevNext from "../components/PrevNext.vue";
Expand Down Expand Up @@ -88,6 +85,11 @@ img.inline-img {
border: 3px solid var(--vp-c-default-1);
}
.mermaid {
display: flex;
justify-content: center;
}
/* image subtitle */
figure figcaption {
margin-bottom: 1.5rem;
Expand Down

0 comments on commit 67891bd

Please sign in to comment.