Skip to content

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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

nick-skriabin
Copy link
Member

@nick-skriabin nick-skriabin commented May 28, 2025

This pull request updates the GridView.scss file to enhance the layout and styling of the GridView component. The changes introduce grid-based layout adjustments for better structure and responsiveness.

Layout improvements:

  • Added a new &-body class 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.
  • Updated the &-content class to use a grid layout with rows defined as min-content and minmax(0, 1fr), improving the content structure and adaptability.
image

@nick-skriabin nick-skriabin requested a review from a team as a code owner May 28, 2025 16:40
Copy link

netlify bot commented May 28, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit d6b0023
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/683a4cfcc7e8a000081b533a

Copy link

netlify bot commented May 28, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit d6b0023
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/683a4cfc3bb22400086bc45f

Copy link

netlify bot commented May 28, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit d6b0023
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/683a4cfcf47bef0008bc1fc4
😎 Deploy Preview https://deploy-preview-7640--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the feat label May 28, 2025
Copy link

netlify bot commented May 28, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit d6b0023
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/683a4cfca2783a000885c094
😎 Deploy Preview https://deploy-preview-7640--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nick-skriabin nick-skriabin requested review from nass600, hlomzik, bmartel, niklub and yyassi-heartex and removed request for a team May 28, 2025 16:48
Copy link
Contributor

@yyassi-heartex yyassi-heartex left a 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

Copy link
Collaborator

@niklub niklub left a 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:

  1. The main GridView component itself (in the current implementation, only GridBody was tested)
  2. GridHeader component functionality
  3. GridCell component interactions
  4. GridDataGroup component behavior
  5. Grid selection interactions (checkboxes, row selection)
  6. Grid resizing and responsive behavior
  7. Click handlers and event management
  8. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants