Skip to content

Commit d801f27

Browse files
committed
fix multiple links
1 parent 77dc462 commit d801f27

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

‎frontend/main/src/layout/PostLayout.tsx‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ export default function PostLayout({
140140
)}
141141
</article>
142142
</div>
143-
<div className="inline-block w-full xl:ml-2 xl:hidden">{recents()}</div>
144143
</>
145144
);
146145
};
@@ -442,7 +441,10 @@ export default function PostLayout({
442441
user={user}
443442
sectionLesson={sectionLesson}
444443
notValidComponent={
445-
<PostMediaLocked sectionLesson={sectionLesson} />
444+
<div className="grid">
445+
<PostMediaLocked sectionLesson={sectionLesson} />
446+
<div className="w-full p-4">{recents()}</div>
447+
</div>
446448
}
447449
>
448450
<>
@@ -452,13 +454,9 @@ export default function PostLayout({
452454
</section>
453455
</div>
454456
<>
455-
{user && user?.uid ? (
456-
<div className="inline-block w-full xl:hidden">
457-
{recents()}
458-
</div>
459-
) : (
460-
<div className="inline-block w-full">{recents()}</div>
461-
)}
457+
<div className="inline-block w-full m-4 xl:m-0 xl:hidden">
458+
{recents()}
459+
</div>
462460
</>
463461
</>
464462
</MemberValidShow>

0 commit comments

Comments
 (0)