修改样式

This commit is contained in:
al 2024-08-09 20:13:46 +08:00
parent 3e7359983b
commit 3292dce71f
2 changed files with 4 additions and 5 deletions

View File

@ -68,7 +68,6 @@ export default function Photos({
const showPhotos = (photos, index) => {
currentIndex.current = index;
const interval = setInterval(() => {
console.log("bbbbbb")
const bodyBox = document.getElementsByClassName("photos-bodyBox")[0];
if (bodyBox) {
bodyBox.firstChild.lastChild.style.transform = `translateX(-${
@ -210,7 +209,7 @@ export default function Photos({
<>
<div
className={`${
currentPhotos.length > 1 ? "grid grid-cols-3 gap-1.5 min-h-[24vw]" : "min-h-[38vw] w-max"
currentPhotos.length > 1 ? "grid grid-cols-3 gap-1.5 min-h-[24vw]" : "w-max"
}`}
>
{currentPhotos.map((item, index) => {
@ -248,9 +247,9 @@ export default function Photos({
<Image
// lazy={true}
placeholder={
<div className="w-full h-full min-h-96 bg-[#1d1d1d] rounded"></div>
<div className="w-full min-h-[24vw] bg-[#1d1d1d] rounded"></div>
}
width={currentPhotos.length > 1 ? "24vw" : "36vw"}
width={currentPhotos.length > 1 ? "24vw" : "46vw"}
height={currentPhotos.length > 1 ? "24vw" : "100%"}
className={`rounded max-w-full ${
item?.type == "hid" && type == "space" ? "imageBlur" : ""

View File

@ -4,7 +4,7 @@ const nextConfig = {
return [
{
source: "/api/:path*",
destination: "https://h5api.tiefen.fun/api/:path*",
destination: "https://testapi.tiefen.fun/api/:path*",
},
];
},