From 5515096a6ccaead0a9bd4fc1e28f2aa223641df4 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Fri, 8 Apr 2022 20:57:32 +0800 Subject: [PATCH] update: siderbar watch --- packages/theme/src/client/components/Page.vue | 2 ++ packages/theme/src/node/prepared/index.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/theme/src/client/components/Page.vue b/packages/theme/src/client/components/Page.vue index dbe6c6d6..f42fdfc9 100644 --- a/packages/theme/src/client/components/Page.vue +++ b/packages/theme/src/client/components/Page.vue @@ -81,6 +81,8 @@ onUnmounted(() => { @include container_wrapper; @include content; display: flex; + justify-content: flex-start; + align-items: flex-start; flex: 1; } diff --git a/packages/theme/src/node/prepared/index.ts b/packages/theme/src/node/prepared/index.ts index a8075942..51ca2a7e 100644 --- a/packages/theme/src/node/prepared/index.ts +++ b/packages/theme/src/node/prepared/index.ts @@ -1,7 +1,7 @@ import type { App } from '@vuepress/core' import type { PlumeThemeLocaleOptions } from '../../shared' import { preparedPostIndex, watchPostIndex } from './postIndex' -import { preparedSidebarIndex } from './sidebarIndex' +import { preparedSidebarIndex, watchSidebarIndex } from './sidebarIndex' export const onPrepared = ( app: App, @@ -17,4 +17,5 @@ export const preparedWatch = ( localeOption: PlumeThemeLocaleOptions ): void => { watchPostIndex(app, watchers, localeOption) + watchSidebarIndex(app, watchers, localeOption) }