-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(HubContentGrid): implement masonry layout (#66)
## Why: The current implementation of the hub content grid is not displaying the grid on a masonry layout (i.e. variable row heights and content cards side by side), which is not working as intended. ## How: By implementing a masonry grid layout with [react-masonry-css](https://www.npmjs.com/package/react-masonry-css) and caping height and setting `overflow: scroll` to achieve a smooth / complete scrollable content grid with masonry effect. Also introduces styling improvements to content cards. ## Demonstration: ![masonry](https://github.com/user-attachments/assets/735600a8-dc4c-4041-a616-7dc29fb4f2ec)
- Loading branch information
Showing
6 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
gap: 10px; | ||
align-items: center; | ||
padding-top: 10px; | ||
font-size: 16px; | ||
margin-bottom: 16px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters