修复header的sticky功能失效问题

This commit is contained in:
jingrow 2025-06-19 01:18:01 +08:00
parent 7cfaa5f7e4
commit 21e188329f
4 changed files with 4 additions and 14 deletions

View File

@ -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 (
<>
<div className="grow shrink-0">
<div className="">
<>
<section className="wrapper">
<Hero />
</section>
<section className="w-full xl:w-10/12 xl:mx-auto">
<section className="w-full xl:w-10/12 xl:mx-auto overflow-x-hidden">
<SwiperItems />
<CategoryItems />
</section>
</>
</div>{" "}

View File

@ -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)) {

View File

@ -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)) {

View File

@ -518,7 +518,3 @@ html {
box-shadow: none !important;
background: #ffffff !important;
}
html, body {
overflow-x: hidden;
}