修复header的sticky功能失效问题
This commit is contained in:
parent
7cfaa5f7e4
commit
21e188329f
10
app/page.jsx
10
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 (
|
||||
<>
|
||||
<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>{" "}
|
||||
|
||||
@ -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)) {
|
||||
|
||||
@ -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)) {
|
||||
|
||||
@ -518,7 +518,3 @@ html {
|
||||
box-shadow: none !important;
|
||||
background: #ffffff !important;
|
||||
}
|
||||
|
||||
html, body {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user