Skip to content

Commit 09ae7a0

Browse files
committed
adjust sponsors on multiple
1 parent 134bce8 commit 09ae7a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/main/src/components/SponsorCards.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export default function SponsorCards({
1313
<h2 className="w-full p-2 m-0 text-2xl font-bold 2xl:p-4 rounded-t-md 2xl:shrink-0 bg-primary-900 dark:bg-primary-900 text-basics-50">
1414
{`Sponsors`}
1515
</h2>
16-
<div className="flex flex-col">
16+
<div className="flex flex-wrap">
1717
{sponsors.map((s, i) => (
1818
<div className="p-2" key={i}>
1919
<a href={s.url} rel="noreferrer noopener" target="_blank">
20-
<div className="max-w-md rounded-lg shadow-lg bg-primary-50 dark:bg-primary-500">
20+
<div className="w-full rounded-lg shadow-lg bg-primary-50 dark:bg-primary-500">
2121
<div className="p-2">
2222
<div
2323
style={{

frontend/main/src/layout/PostLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ export default function PostLayout({
214214
)}
215215
{/* RECENTS */}
216216
{recentPosts && (
217-
<section className="flex flex-col w-full mb-2 xl:ml-2">
217+
<section className="flex flex-col w-full max-w-sm mb-2 xl:ml-2">
218218
{post?.sponsors && (
219-
<section>
219+
<section className="pb-2">
220220
<SponsorCards sponsors={post.sponsors} />
221221
</section>
222222
)}

0 commit comments

Comments
 (0)