diff --git a/app/page.js b/app/page.js
index 2296711..b07cc2f 100644
--- a/app/page.js
+++ b/app/page.js
@@ -139,6 +139,7 @@ const RecommPostList = forwardRef(({ scrollHeight }, ref) => {
setHasMore(true);
}
async function loadMore() {
+ // debugger
const list = await getRecommPostList(!commenPostList.length?2:0);
if (list.length == 0) {
setHasMore(false);
diff --git a/components/Photos/index.js b/components/Photos/index.js
index 1e644e3..49f8b34 100644
--- a/components/Photos/index.js
+++ b/components/Photos/index.js
@@ -210,13 +210,13 @@ export default function Photos({
<>
1 ? "grid-cols-3 gap-1.5" : "grid-cols-1"
+ currentPhotos.length > 1 ? "grid-cols-3 gap-1.5 min-h-[24vw]" : "grid-cols-1 min-h-[38vw]"
}`}
>
{currentPhotos.map((item, index) => {
return (
{
@@ -241,27 +241,27 @@ export default function Photos({
>
{
1 ? "min-h-[24vw]" : "min-h-[38vw]"
+ className={`overflow-hidden inline-block rounded h-full max-h-80 ${
+ currentPhotos.length > 1 ? "min-h-[24vw]" : "max-h-[38vw]"
}`}
>
+
}
- width={currentPhotos.length > 1 ? "24vw" : "100%"}
- height={currentPhotos.length > 1 ? "24vw" : "auto"}
+ width={currentPhotos.length > 1 ? "24vw" : "auto"}
+ height={currentPhotos.length > 1 ? "24vw" : "38vw"}
className={`rounded max-w-full ${
item?.type == "hid" && type == "space" ? "imageBlur" : ""
}`}
- fit="cover"
+ fit={currentPhotos.length > 1?"cover":"contain"}
src={item?.url}
/>
}
{item?.mp4 && (
-
)}
@@ -282,14 +284,14 @@ export default function Photos({
photos.length > 9 &&
(!seeAllPhotos ? (
+{currentPhotos.length}
) : (
diff --git a/components/PostItem/index.js b/components/PostItem/index.js
index 499d2d5..f027b6d 100644
--- a/components/PostItem/index.js
+++ b/components/PostItem/index.js
@@ -163,7 +163,7 @@ export default function PostItem({
)}
-