Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,21 @@
bottom: 0;
transform: rotate(45deg);
}

.nested-grid {
height: 100%;
width: 100%;
background: #f0f0f0;
border-radius: 4px;
padding: 10px;
}

.nested-grid-item {
background: #fff;
border: 1px solid #ddd;
border-radius: 4px;
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
}
2 changes: 1 addition & 1 deletion dist/react-grid-layout.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-grid-layout.min.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions examples/util/vars.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,11 @@ module.exports = [
"This demonstrates how to constrain the elements to a single row."
]
},
{
title: "Nested Grid",
source: "nested-grid",
paragraphs: [
"This demonstrates how to constrain the elements to a single row."
]
},
Comment on lines +185 to +191
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Description for Nested Grid example needs revision.

The description text appears to be copied from the "Single Row Horizontal" example rather than providing a specific explanation of what nested grid layouts are and how they function.

  {
    title: "Nested Grid",
    source: "nested-grid",
    paragraphs: [
-      "This demonstrates how to constrain the elements to a single row."
+      "This demonstrates how grid items can contain their own grid layouts, allowing for complex nested structures."
    ]
  },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
{
title: "Nested Grid",
source: "nested-grid",
paragraphs: [
"This demonstrates how to constrain the elements to a single row."
]
},
{
title: "Nested Grid",
source: "nested-grid",
paragraphs: [
"This demonstrates how grid items can contain their own grid layouts, allowing for complex nested structures."
]
},

];
Loading