From 21e188329fe789e0969a740f042397b9320446d4 Mon Sep 17 00:00:00 2001 From: jingrow Date: Thu, 19 Jun 2025 01:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dheader=E7=9A=84sticky?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/page.jsx | 10 ++-------- components/homes/home-15/CategoryItems.jsx | 2 +- components/homes/home-15/SwiperItems.jsx | 2 +- public/assets/custom.css | 4 ---- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/app/page.jsx b/app/page.jsx index 269ac0e..1febd35 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -1,9 +1,4 @@ -import Faqs from "@/components/homes/home-15/Faqs"; -import Gallery from "@/components/homes/home-15/Gallery"; -import Features from "@/components/homes/home-15/Features"; import Hero from "@/components/homes/home-15/Hero"; -import PageItems from "@/components/homes/home-15/PageItems"; -import CategoryItems from "@/components/homes/home-15/CategoryItems"; import SwiperItems from "@/components/homes/home-15/SwiperItems"; import React from "react"; import { getSiteSettings } from "@/utlis/siteSettings"; @@ -34,14 +29,13 @@ export async function generateMetadata() { export default function Page() { return ( <> -
+
<>
-
+
-
{" "} diff --git a/components/homes/home-15/CategoryItems.jsx b/components/homes/home-15/CategoryItems.jsx index bc020f7..1b7010a 100644 --- a/components/homes/home-15/CategoryItems.jsx +++ b/components/homes/home-15/CategoryItems.jsx @@ -128,7 +128,7 @@ export default function CategoryItems() { return null; } - function getSummary(text, maxLen = 60) { + function getSummary(text, maxLen = 58) { if (!text) return ""; // 中文:直接按字符截断 if (/[\u4e00-\u9fa5]/.test(text)) { diff --git a/components/homes/home-15/SwiperItems.jsx b/components/homes/home-15/SwiperItems.jsx index faea41c..883d77b 100644 --- a/components/homes/home-15/SwiperItems.jsx +++ b/components/homes/home-15/SwiperItems.jsx @@ -132,7 +132,7 @@ export default function SwiperItems(props) { return null; } - function getSummary(text, maxLen = 60) { + function getSummary(text, maxLen = 58) { if (!text) return ""; // 中文:直接按字符截断 if (/[\u4e00-\u9fa5]/.test(text)) { diff --git a/public/assets/custom.css b/public/assets/custom.css index bbdc9e5..2535d42 100644 --- a/public/assets/custom.css +++ b/public/assets/custom.css @@ -518,7 +518,3 @@ html { box-shadow: none !important; background: #ffffff !important; } - -html, body { - overflow-x: hidden; -} \ No newline at end of file