-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avanced Settings: Custom API names for Select & Multi-Select Keys (#7489
) ### Description - text input was changed because it renders an empty div as the right icon, but the margin and padding affect the layout - we have duplicated code on ExpandedWidthAnimationVariants.ts, because of an eslint rule that prevents more than one const definition, can we ignore the rule? - ### Demo <https://www.loom.com/share/17a37bf5549a4a23ba12343b6046ec6b?sid=4cf297f3-66db-44c9-9a9b-7bde89b90d02> ### Refs <#6146> --------- Co-authored-by: gitstart-twenty <[email protected]> Co-authored-by: gitstart-twenty <[email protected]> Co-authored-by: Marie Stoppa <[email protected]>
- Loading branch information
1 parent
3ecf955
commit 7ceaa87
Showing
5 changed files
with
164 additions
and
17 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/twenty-front/src/modules/settings/constants/AdvancedSettingsAnimationDurations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const ADVANCED_SETTINGS_ANIMATION_DURATION = { | ||
opacity: 0.2, | ||
size: 0.4, | ||
}; |
31 changes: 31 additions & 0 deletions
31
packages/twenty-front/src/modules/settings/constants/ExpandedWidthAnimationVariants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { ADVANCED_SETTINGS_ANIMATION_DURATION } from '@/settings/constants/AdvancedSettingsAnimationDurations'; | ||
|
||
export const EXPANDED_WIDTH_ANIMATION_VARIANTS = { | ||
initial: { | ||
opacity: 0, | ||
width: 0, | ||
overflow: 'hidden', | ||
transition: { | ||
opacity: { duration: ADVANCED_SETTINGS_ANIMATION_DURATION.opacity }, | ||
width: { duration: ADVANCED_SETTINGS_ANIMATION_DURATION.size }, | ||
}, | ||
}, | ||
animate: { | ||
opacity: 1, | ||
width: '100%', | ||
overflow: 'hidden', | ||
transition: { | ||
opacity: { duration: ADVANCED_SETTINGS_ANIMATION_DURATION.opacity }, | ||
width: { duration: ADVANCED_SETTINGS_ANIMATION_DURATION.size }, | ||
}, | ||
}, | ||
exit: { | ||
opacity: 0, | ||
width: 0, | ||
overflow: 'hidden', | ||
transition: { | ||
opacity: { duration: ADVANCED_SETTINGS_ANIMATION_DURATION.opacity }, | ||
width: { duration: ADVANCED_SETTINGS_ANIMATION_DURATION.size }, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters