-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: recordBoard sticky header + scrollThumb #8946
Conversation
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.
PR Summary
This PR fixes UI issues with the RecordBoard component's header and scrollbar by adjusting container dimensions and layout properties.
- Modified
StyledContainerWithPadding
width calculation in/packages/twenty-front/src/modules/object-record/record-index/components/RecordIndexContainer.tsx
to properly account for left margin spacing - Removed
height: 100%
fromStyledContainerContainer
in/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoard.tsx
to fix sticky header behavior - Added
height: calc(100% - 48px)
toStyledBoardContentContainer
to ensure proper scrollable area
2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
...ages/twenty-front/src/modules/object-record/record-index/components/RecordIndexContainer.tsx
Outdated
Show resolved
Hide resolved
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.
LGTM! Left a comment!
margin-left: ${({ theme }) => theme.spacing(2)}; | ||
width: 100%; | ||
width: calc(100% - ${({ theme }) => theme.spacing(2)}); |
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.
Could we use box-sizing: border-box
instead of calculating width?
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.
I tried! It didn't work ;(
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.
@ehconitin could you try taking over this change?
@@ -17,7 +17,7 @@ import 'overlayscrollbars/overlayscrollbars.css'; | |||
|
|||
const StyledScrollWrapper = styled.div<{ scrollHide?: boolean }>` | |||
display: flex; | |||
height: fit-content; |
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.
This change introduced in #9062 broke the scroll on the recordboard, reverted!
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.
LGTM!
@harshrajeevsingh Great work, Thanks!
box-sizing: border-box; does work instead of calculating width :)
I am not sure why it didn't work on your side, could you please re-verify if the reason of it not working is linux specific?
Thanks @harshrajeevsingh for your contribution! |
It's working not because of |
Fixes: #8944
Screencast.from.2024-12-08.00-43-19.webm