From 05172a085fdd679da6a5cfade6d8f2d140aa8b45 Mon Sep 17 00:00:00 2001 From: Andrew Cherniavskyi Date: Wed, 9 Oct 2024 18:55:43 +0200 Subject: [PATCH] set min height when there are no rows --- docs/data/data-grid/layout/FlexGrid.js | 12 ++++++++++-- docs/data/data-grid/layout/FlexGrid.tsx | 12 ++++++++++-- docs/data/data-grid/layout/FlexGrid.tsx.preview | 11 ----------- 3 files changed, 20 insertions(+), 15 deletions(-) delete mode 100644 docs/data/data-grid/layout/FlexGrid.tsx.preview diff --git a/docs/data/data-grid/layout/FlexGrid.js b/docs/data/data-grid/layout/FlexGrid.js index b4a52de337c2..75c8d9fe8bc3 100644 --- a/docs/data/data-grid/layout/FlexGrid.js +++ b/docs/data/data-grid/layout/FlexGrid.js @@ -16,6 +16,8 @@ export default function FlexGrid() { maxColumns: 6, }); + const rows = data.rows.slice(0, nbRows); + return ( @@ -26,8 +28,14 @@ export default function FlexGrid() { Add a row -
- +
+
); diff --git a/docs/data/data-grid/layout/FlexGrid.tsx b/docs/data/data-grid/layout/FlexGrid.tsx index b4a52de337c2..75c8d9fe8bc3 100644 --- a/docs/data/data-grid/layout/FlexGrid.tsx +++ b/docs/data/data-grid/layout/FlexGrid.tsx @@ -16,6 +16,8 @@ export default function FlexGrid() { maxColumns: 6, }); + const rows = data.rows.slice(0, nbRows); + return ( @@ -26,8 +28,14 @@ export default function FlexGrid() { Add a row -
- +
+
); diff --git a/docs/data/data-grid/layout/FlexGrid.tsx.preview b/docs/data/data-grid/layout/FlexGrid.tsx.preview deleted file mode 100644 index 8d70b80ecd3e..000000000000 --- a/docs/data/data-grid/layout/FlexGrid.tsx.preview +++ /dev/null @@ -1,11 +0,0 @@ - - - - -
- -
\ No newline at end of file