Skip to content

Commit

Permalink
Merge pull request #87 from ins-x/fix/86
Browse files Browse the repository at this point in the history
fix(theme): wrong layout of API page (close: #86)
  • Loading branch information
fireairforce authored Jan 16, 2023
2 parents ab52bbe + e02981d commit 0a2346a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/vuepress-theme-vt/components/Page.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<template>
<main :class="['page', isHomepage ? 'homepage' : '', pageName]">
<main :class="[
'page',
isHomepage ? 'homepage' : '',
$page.frontmatter.api ? 'enable-api' : '',
pageName,
]">
<slot name="top" />

<Content class="theme-default-content vp-doc" />
Expand Down
2 changes: 1 addition & 1 deletion packages/vuepress-theme-vt/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ table {
.page {
padding-left: calc((100vw - var(--vp-screen-max-width)) / 2 + var(--vp-sidebar-width));

&.api {
&.enable-api {
font-size: 20px;
padding-left: 240px;

Expand Down

0 comments on commit 0a2346a

Please sign in to comment.