Skip to content

Commit

Permalink
feat: 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghao1993 committed Jan 8, 2025
1 parent af486d1 commit f01b5f4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/ai-tools/component/siderbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export function Sidebar(props: {
menuItems: { id: number; title: string; icon: any }[];
}) {
return (
<div className="lg:h-[calc(100vh-60px)] px-2 lg:w-[220px] lg:flex-col lg:fixed overflow-auto flex gap-2 xs:block text-center top-10">
<div className="lg:h-[calc(100vh-100px)] px-2 lg:w-[220px] lg:flex-col lg:fixed overflow-auto flex gap-2 xs:block text-center top-20">
{props.menuItems.map((item) => (
<Link
href={"#category-" + item.id}
Expand Down
5 changes: 1 addition & 4 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import LenisProvider from "@/components/Providers/LenisProvider";
import ThemeProvider from "@/components/Providers/ThemeProvider";
import { ScrollProvider } from "@/components/Providers/ScrollProvider";
import "./ui/globals.scss";
import { AntdRegistry } from "@ant-design/nextjs-registry";
import { content } from "@/lib/font";
import Footer from "@/components/Footer";
import { GoogleTagManager, GoogleAnalytics } from "@next/third-parties/google";
import { ProgressProvider } from "@/components/Providers/ProgressProdivder";
import { GoogleAnalytics } from "@next/third-parties/google";
import Script from "next/script";
import type { Metadata } from "next";
import dynamic from "next/dynamic";
Expand Down
5 changes: 0 additions & 5 deletions lib/font.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import { Ma_Shan_Zheng, Noto_Serif_Bengali } from "next/font/google";
export const roboto = Ma_Shan_Zheng({
weight: "400",
subsets: ["latin"],
display: "swap",
});

export const content = Noto_Serif_Bengali({
weight: "400",
Expand Down
8 changes: 7 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,11 @@ const nextConfig = {
];
},
};
let config;
if (process.env.env === "production") {
config = withContentlayer(withMDX(withPWA(nextConfig)));
} else {
config = withContentlayer(withMDX(nextConfig));
}

export default withContentlayer(withMDX(withPWA(nextConfig)));
export default config;
2 changes: 1 addition & 1 deletion public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f01b5f4

Please sign in to comment.