Skip to content

Commit

Permalink
💄 remove extra on this page and fix mobile content width
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Oct 13, 2024
1 parent eb01509 commit a74dd96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions packages/theme-nonepress/src/theme/DocItem/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from "react";

import clsx from "clsx";

import { useDoc } from "@docusaurus/plugin-content-docs/client";
import { useWindowSize } from "@docusaurus/theme-common";

Expand Down Expand Up @@ -52,7 +50,6 @@ export default function DocItemLayout({ children }: Props): JSX.Element {
<article>
<DocBreadcrumbs />
<DocVersionBadge />
{docTOC.mobile}
<DocItemContent>{children}</DocItemContent>
<DocItemFooter />
</article>
Expand Down
3 changes: 2 additions & 1 deletion packages/theme-nonepress/src/theme/Page/styles.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.page {
@apply flex flex-row;
@apply max-w-[90rem] mx-auto px-4 sm:px-6 md:px-8 w-full;
@apply justify-center;

&-sidebar {
@apply hidden lg:block sticky top-0 -ml-8;
Expand All @@ -12,7 +13,7 @@
}

&-sidebar + &-main {
@apply ml-4 max-w-[calc(100%-18rem)];
@apply ml-4 lg:max-w-[calc(100%-18rem)];
}

&-content {
Expand Down

0 comments on commit a74dd96

Please sign in to comment.