-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Added Side Panel compact header #6560
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
The pull request introduces a new prop isInRightDrawer
to the ShowPageSummaryCard
and ShowPageRightContainer
components to apply different styles when these components are rendered within a right drawer.
- Updated
/packages/twenty-front/src/modules/object-record/record-show/components/RecordShowContainer.tsx
to passisInRightDrawer
prop toShowPageSummaryCard
andShowPageRightContainer
. - Modified
/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageRightContainer.tsx
to conditionally styleStyledFieldsBox
based onisInRightDrawer
. - Enhanced
/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx
to adjust styles like flex direction, gap, and height based onisInRightDrawer
. - Added
box-sizing: border-box
toShowPageSummaryCard
for alignment with Figma designs.
3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
You're on fire @ehconitin! |
Great work!
|
U mean in the left summarycard and fields? this one? this should be easy.
Your reviews helped alot!
So should the grey box be in full height and width ? And if yes just for TextEditor right? |
Got it! |
Hi @FelixMalfait , I've made the changes based on your review. Regarding the prop naming, what do you think about using
I'll address this behavior in the indent bullet points issue. I've also fixed the bug where empty icons were not being rendered in the center. (refer video): 2024-08-07.17-07-47.mp4Here is how the code behave after this changes: 2024-08-07.17-38-09.mp4Let me know your thoughts! |
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.
Great work!!!
Thanks @ehconitin for your contribution! |
Fixes issue #6487
Added a new prop,
isInRightDrawer
to both theShowPageSummaryCard
andShowPageRightContainer
components. This prop allows for different styles to be applied based on the specific needs of the drawer..Rather than creating a new component, I opted to add this prop to avoid code duplication. However, if you would prefer a separate component for this functionality, I'm happy to make that adjustment—please just let me know!
Also added
box-sizing: border-box
toShowPageSummaryCard
to make sure it aligns with figma designs.2024-08-06.23-42-48.mp4