year hai 2 semanas
pai
achega
30616d1868
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/app/[locale]/(TabBar)/[[...share]]/_home/HomeCard.tsx

+ 3 - 3
src/app/[locale]/(TabBar)/[[...share]]/_home/HomeCard.tsx

@@ -11,11 +11,11 @@ interface Props {
 const HomeCard: FC<PropsWithChildren<Props>> = (props) => {
     const { banners = [] } = props;
     return (
-        <Swiper slidesPerView={3} spaceBetween={10}>
+        <Swiper slidesPerView={2} spaceBetween={10}>
             {banners?.map((banner, index) => (
                 <SwiperSlide key={index} className={"my-[0.08rem]"}>
                     <Box
-                        className={"h-[1.0903rem] max-w-[1.2153rem]"}
+                        className={""}
                         none
                         action={banner.action_type}
                         actionData={banner.action_params}
@@ -23,7 +23,7 @@ const HomeCard: FC<PropsWithChildren<Props>> = (props) => {
                         <img
                             src={banner.content!}
                             alt=""
-                            className={"h-[100%] w-[100%] rounded-[0.1rem]"}
+                            className={"w-[100%] rounded-[0.06rem]"}
                         />
                     </Box>
                 </SwiperSlide>