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(UI/advanced-mode): collapse animation more smooth #9803

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yukirine
Copy link

Author: Julie Wu [email protected]
Date: Wed Jan 22 19:08:02 2025 +0100

 Author:    Julie Wu <[email protected]>
 Date:      Wed Jan 22 19:08:02 2025 +0100
Copy link

github-actions bot commented Jan 22, 2025

Welcome!

Hello there, congrats on your first PR! We're excited to have you contributing to this project.
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Generated by 🚫 dangerJS against 4dd1551

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 enhances the collapse animation smoothness in advanced settings by adjusting styling properties in the AdvancedSettingsWrapper and form components.

  • Added padding-bottom using theme spacing in packages/twenty-front/src/modules/settings/components/AdvancedSettingsWrapper.tsx to prevent content cutoff during animation
  • Modified StyledAdvancedSettingsSectionInputWrapper in packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx with z-index: -1 and position: relative for better stacking context
  • Removed gap property from StyledAdvancedSettingsSectionInputWrapper to eliminate spacing interference with animations

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

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

Comment on lines 67 to +69
flex: 1;
z-index: -1;
position: relative;
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: Setting z-index: -1 could cause issues with interactive elements inside this wrapper becoming unclickable if there are other elements with a higher z-index that overlap

Copy link
Contributor

@ehconitin ehconitin left a comment

Choose a reason for hiding this comment

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

left a comment

@@ -5,6 +5,7 @@ import { useRecoilValue } from 'recoil';
import { AnimatedExpandableContainer, IconPoint, MAIN_COLORS } from 'twenty-ui';

const StyledAdvancedWrapper = styled.div`
padding-bottom: ${({ theme }) => theme.spacing(4)};
Copy link
Contributor

Choose a reason for hiding this comment

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

@yukirine I think this might cause regressions somewhere else.
Could u verify all the places where this wrapper is being used we might have unwanted padding-bottom.

@ehconitin
Copy link
Contributor

Also please mention the issue # in description :) thanks

@yukirine
Copy link
Author

@ehconitin Hey
The correction proposed by @Lucifer4255 and me leads to regressions, and I will likely need help figuring out how to modify only this component. Otherwise, the wrapper is used in too many places, so any modifications to the wrapper seem unfeasible, especially since we need the animation.

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

Successfully merging this pull request may close these issues.

3 participants