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

Fix empty state not being centered #8650

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Fix empty state not being centered #8650

merged 1 commit into from
Nov 21, 2024

Conversation

bosiraphael
Copy link
Contributor

Fix empty state not being centered

Before:
Capture d’écran 2024-11-21 à 15 50 56

After:
Capture d’écran 2024-11-21 à 15 50 41

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR modifies the ScrollWrapper component's inner container styling to properly center empty states by changing from flex-based to height-based layout.

  • Changed StyledInnerContainer in /packages/twenty-front/src/modules/ui/utilities/scroll/components/ScrollWrapper.tsx from flex: 1 to height: 100% to fix empty state centering
  • Potential edge case: Components relying on ScrollWrapper's flex growth behavior may need adjustment

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines 26 to 28
const StyledInnerContainer = styled.div`
flex: 1;
height: 100%;
`;
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Removing flex:1 may prevent container from growing to fill available space in flex layouts. Consider using both flex:1 and height:100% if both behaviors are needed.

@bosiraphael bosiraphael merged commit b8c01bc into main Nov 21, 2024
19 checks passed
@bosiraphael bosiraphael deleted the center-empty-state branch November 21, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants