Skip to content
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

Record board columns design fix (full height borders) #5273

Open
FelixMalfait opened this issue May 3, 2024 · 4 comments · May be fixed by #5290
Open

Record board columns design fix (full height borders) #5273

FelixMalfait opened this issue May 3, 2024 · 4 comments · May be fixed by #5290
Assignees
Labels
good first issue Good for newcomers ready scope: front Issues that are affecting the frontend side only type: bug Something isn't working type: design improvement

Comments

@FelixMalfait
Copy link
Member

Column separators in the record board should take the full heigh, instead it doesn't look good if the board doesn't have any card

See current behavior:
Screenshot 2024-05-03 at 15 13 31

cc @Bonapara

@FelixMalfait FelixMalfait added type: bug Something isn't working good first issue Good for newcomers scope: front Issues that are affecting the frontend side only ready type: design improvement labels May 3, 2024
Copy link

greptile-apps bot commented May 3, 2024

To fix the issue of column separators not taking full height when the board doesn't have any cards, you'll need to adjust the CSS for the column container. This likely involves modifying the RecordBoardColumn.tsx component or its associated styled components to ensure the column's container expands to the full height of its parent container, even when it contains no cards.

A potential CSS solution could be to ensure that the column container has a min-height: 100% or height: 100% property set, depending on the parent container's height management. If the parent container's height is dynamically determined, flexbox or grid display properties might be more appropriate to ensure the column stretches to fill the available space.

Please review the styling applied in RecordBoardColumn.tsx and any relevant styled component files to implement this design fix.

References

twentyhq/twenty/packages/twenty-front/src/modules/object-record/record-board/record-board-column/components

Ask Greptile

Copy link

greptile-apps bot commented May 3, 2024

To fix the issue of column separators not extending to full height when there are no cards in the record board, you'll need to adjust the CSS for the RecordBoardColumn component and possibly its child components. Here's a step-by-step guide:

  1. Adjust the CSS for the RecordBoardColumn component (RecordBoardColumn.tsx): Ensure that the main container of the column has a CSS property that allows it to stretch to the full height of its parent. This can be achieved by setting height: 100%; or using flexbox properties such as flex-grow: 1; to make the column take up all available space.

  2. Ensure the container inside RecordBoardColumnCardsContainer.tsx stretches: If the RecordBoardColumnCardsContainer component is responsible for the actual rendering of the cards and the background, make sure its root element also has height: 100%; or appropriate flex properties.

  3. Review global styles: Sometimes, global styles or parent container styles can override or affect the styling of your components. Ensure there's no conflicting CSS that might prevent the columns from stretching to full height.

  4. Fallback minimum height: As a last resort, if the columns are still not stretching due to lack of content, you can apply a min-height CSS property to ensure that the columns have a minimum height even when empty.

These steps should guide you towards resolving the issue with the column separators. Make sure to test the changes across different browsers and screen sizes to ensure consistent behavior.

References

twentyhq/twenty/packages/twenty-front/src/modules/object-record/record-board/record-board-column/components
twentyhq/twenty/packages/twenty-front/src/modules/object-record/record-board/record-board-column

Ask Greptile

@twentyhq twentyhq deleted a comment from greptile-apps bot May 3, 2024
@twentyhq twentyhq deleted a comment from greptile-apps bot May 3, 2024
@twentyhq twentyhq deleted a comment from greptile-apps bot May 3, 2024
@twentyhq twentyhq deleted a comment from greptile-apps bot May 3, 2024
@orinamio
Copy link
Contributor

orinamio commented May 3, 2024

I'll look into this issue. Can you assign me to it?

@Bonapara
Copy link
Member

Bonapara commented May 3, 2024

Sure, thanks for contributing @orinamio!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers ready scope: front Issues that are affecting the frontend side only type: bug Something isn't working type: design improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@FelixMalfait @orinamio @Bonapara and others