Skip to content

🎥 Make videos programmatically with React

Elements: Cap library card widths and limit rows to three columns

Igor Samokhovetsd83faa007173
diff --git a/packages/docs/src/components/Elements/ElementLibrary.module.css b/packages/docs/src/components/Elements/ElementLibrary.module.css
index 51ba3893f7..20e7f26398 100644
--- a/packages/docs/src/components/Elements/ElementLibrary.module.css
+++ b/packages/docs/src/components/Elements/ElementLibrary.module.css
@@ -107,7 +107,7 @@
@container element-library (min-width: 600px) {
.grid {
- grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
+ grid-template-columns: repeat(2, minmax(0, 320px));
gap: 24px;
}
@@ -120,11 +120,8 @@
}
}
-@container element-library (min-width: 900px) {
+@container element-library (min-width: 858px) {
.grid {
- grid-template-columns: repeat(
- auto-fill,
- minmax(calc((100% - 48px) / 3), 1fr)
- );
+ grid-template-columns: repeat(3, minmax(0, 320px));
}
}