-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat: BROS-62: Responsive grid images #7640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for label-studio-docs-new-theme ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for heartex-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to be careful with this - what happens when a user adds more columns to display in grid view? since the image is now hight based does it just continuously get smaller?
Alec mentioned need to include an ability to change the size of the image / amount of text and possibly the ability to change the size of the tile based on the number in the row so it gets bigger + the ability to scroll through text in the grid view?
Happy to sync on this with you - feels like there is more to be done here
tested in FB - I see the image can get squished in certain situations
screen-recorder-wed-may-28-2025-13-36-47.webm
niklub
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider test coverage for <GridView>, which includes:
- The main GridView component itself (in the current implementation, only GridBody was tested)
- GridHeader component functionality
- GridCell component interactions
- GridDataGroup component behavior
- Grid selection interactions (checkboxes, row selection)
- Grid resizing and responsive behavior
- Click handlers and event management
- Different data types beyond images (Text, Unknown types)
Added autogenerated tests for your convenience, feel free to edit or remove them, but keeping the coverage high enough
|
/fmt |
|
/git merge
|
web/libs/datamanager/src/components/DataManager/Toolbar/Toolbar.jsx
Outdated
Show resolved
Hide resolved
web/libs/datamanager/src/components/MainView/GridView/GridView.jsx
Outdated
Show resolved
Hide resolved
….jsx Co-authored-by: Andrew <[email protected]>
…r.jsx Co-authored-by: Andrew <[email protected]>
web/libs/datamanager/src/components/MainView/GridView/GridView.jsx
Outdated
Show resolved
Hide resolved
web/libs/datamanager/src/components/MainView/GridView/GridView.jsx
Outdated
Show resolved
Hide resolved
web/libs/datamanager/src/components/DataGroups/ImageDataGroup.jsx
Outdated
Show resolved
Hide resolved
web/libs/datamanager/src/components/DataManager/Toolbar/GridWidthButton.jsx
Outdated
Show resolved
Hide resolved
yyassi-heartex
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with the expectation that the comments added by @hlomzik and I are addressed
Co-authored-by: Yousif Yassi <[email protected]>
|
/git merge
|
This pull request updates the
GridView.scssfile to enhance the layout and styling of theGridViewcomponent. The changes introduce grid-based layout adjustments for better structure and responsiveness.Layout improvements:
&-bodyclass with a grid-based layout. This includes handling cases where the body contains an image, ensuring proper alignment and responsiveness. Additionally, images within the body are set to take up the full height.&-contentclass to use a grid layout with rows defined asmin-contentandminmax(0, 1fr), improving the content structure and adaptability.