Skip to content

🎥 Make videos programmatically with React

add .bounty-grid-clamp utility class

zafer612e2047218e
diff --git a/packages/docs/components/Bounties.tsx b/packages/docs/components/Bounties.tsx
index cddc7270a8..08c3e0288f 100644
--- a/packages/docs/components/Bounties.tsx
+++ b/packages/docs/components/Bounties.tsx
@@ -33,7 +33,7 @@ export const Bounties = () => {
}, []);
return (
- <div className={`bounty-grid ${colorMode}`}>
+ <div className={`${colorMode} bounty-grid`}>
{bounties._tag === "success" &&
bounties.data.map((bounty) => (
<div key={bounty.id}>
diff --git a/packages/docs/components/bounties.css b/packages/docs/components/bounties.css
index 44df532389..5bf5222035 100644
--- a/packages/docs/components/bounties.css
+++ b/packages/docs/components/bounties.css
@@ -41,7 +41,7 @@
gap: 0.5rem;
}
-.bounty-grid > *:not(:first-child) {
+.bounty-grid.bounty-grid-clamp > *:not(:first-child) {
display: none;
}
@@ -49,7 +49,7 @@
.bounty-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
- .bounty-grid > *:nth-child(-n + 2) {
+ .bounty-grid.bounty-grid-clamp > *:nth-child(-n + 2) {
display: block;
}
}
@@ -58,7 +58,7 @@
.bounty-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
- .bounty-grid > *:nth-child(-n + 3) {
+ .bounty-grid.bounty-grid-clamp > *:nth-child(-n + 3) {
display: block;
}
}