mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
M: Remove unnecessary will-change attributes
This commit is contained in:
parent
3841a7ad68
commit
bc3d4e0f26
|
@ -100,7 +100,6 @@ export function RSEditorControls({ isOpen, disabled, onEdit }: RSEditorControlsP
|
||||||
style={{
|
style={{
|
||||||
clipPath: isOpen ? 'inset(0% 0% 0% 0%)' : 'inset(0% 0% 100% 0%)',
|
clipPath: isOpen ? 'inset(0% 0% 0% 0%)' : 'inset(0% 0% 100% 0%)',
|
||||||
marginTop: isOpen ? '0.25rem' : '0rem',
|
marginTop: isOpen ? '0.25rem' : '0rem',
|
||||||
willChange: 'max-height',
|
|
||||||
transitionProperty: 'max-height',
|
transitionProperty: 'max-height',
|
||||||
transitionDuration: `${PARAMETER.moveDuration}ms`,
|
transitionDuration: `${PARAMETER.moveDuration}ms`,
|
||||||
maxHeight: isOpen ? '4.5rem' : '0rem'
|
maxHeight: isOpen ? '4.5rem' : '0rem'
|
||||||
|
|
|
@ -81,7 +81,6 @@ export function ViewHidden({ items }: ViewHiddenProps) {
|
||||||
style={{
|
style={{
|
||||||
pointerEvents: isFolded ? 'none' : 'auto',
|
pointerEvents: isFolded ? 'none' : 'auto',
|
||||||
maxHeight: hiddenHeight,
|
maxHeight: hiddenHeight,
|
||||||
willChange: 'clip-path',
|
|
||||||
transitionProperty: 'clip-path',
|
transitionProperty: 'clip-path',
|
||||||
transitionDuration: `${PARAMETER.fastAnimation}ms`,
|
transitionDuration: `${PARAMETER.fastAnimation}ms`,
|
||||||
transitionTimingFunction: 'ease-out',
|
transitionTimingFunction: 'ease-out',
|
||||||
|
|
|
@ -36,7 +36,6 @@ export function ViewConstituents({ className, isBottom, isMounted }: ViewConstit
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
style={{
|
style={{
|
||||||
willChange: 'opacity, max-width',
|
|
||||||
transitionProperty: 'opacity, max-width',
|
transitionProperty: 'opacity, max-width',
|
||||||
transitionDuration: `${2 * PARAMETER.moveDuration}ms`,
|
transitionDuration: `${2 * PARAMETER.moveDuration}ms`,
|
||||||
transitionTimingFunction: 'ease-in-out',
|
transitionTimingFunction: 'ease-in-out',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user