diff --git a/docs/OVERVIEW.md b/docs/OVERVIEW.md index d7182d6..789604b 100644 --- a/docs/OVERVIEW.md +++ b/docs/OVERVIEW.md @@ -147,18 +147,22 @@ Conventions worth knowing: ``` ┌──────────────────────────────────────────────────────────┐ │ [book mark] paper-doc 论文 模板 [mark] │ header -├──────────────────────────────────────┬───────────────────┤ -│ │ 模板配置 │ second-level -│ │ 模板列表 │ menu, right -│ │ 字段管理 │ -└──────────────────────────────────────┴───────────────────┘ +├───────────────────┬──────────────────────────────────────┤ +│ 模板配置 │ │ second-level +│ 模板列表 │ │ menu, left +│ 字段管理 │ │ +└───────────────────┴──────────────────────────────────────┘ ``` The mark appears at both ends of the header. The second-level menu sits on the -**right** and is driven entirely by `route.meta.section`, so a route declares +**left** and is driven entirely by `route.meta.section`, so a route declares which menu it belongs to and deep links render correctly on first paint. Routes without a `section` (the welcome page) show no menu. +Which side the menu lands on follows from its DOM order inside the flex row in +`App.vue` — first child, left — so moving it is a one-block change there rather +than a stylesheet override. + ### Routes | Path | View | Section | diff --git a/frontend/src/App.vue b/frontend/src/App.vue index ad46a14..6c57f21 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -3,9 +3,9 @@ * Application shell. * * Three bands, in this order: a header holding the mark, the two top-level - * sections, and the mark again at the far right; then the content area; then - * the second-level menu on the right, present only on routes that declare a - * `section` in their meta. + * sections, and the mark again at the far right; then the row below it, which + * is the second-level menu on the left followed by the content area. The menu + * is present only on routes that declare a `section` in their meta. */ import { computed } from 'vue' import { RouterView, RouterLink, useRoute } from 'vue-router' @@ -65,11 +65,13 @@ const section = computed(() => (route.meta.section as string | undefined) ?? '') + + + - - diff --git a/frontend/src/components/SectionAside.vue b/frontend/src/components/SectionAside.vue index 7cd7fa8..a67cec6 100644 --- a/frontend/src/components/SectionAside.vue +++ b/frontend/src/components/SectionAside.vue @@ -1,6 +1,6 @@