mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
perf(ui): reduce animations which slow down reactflow
This commit is contained in:
@@ -8,8 +8,6 @@ const sx = {
|
||||
minH: 8,
|
||||
py: 0.5,
|
||||
alignItems: 'center',
|
||||
transitionProperty: 'opacity',
|
||||
transitionDuration: '0.1s',
|
||||
w: 'full',
|
||||
h: 'full',
|
||||
} satisfies SystemStyleObject;
|
||||
|
||||
@@ -8,8 +8,6 @@ const sx = {
|
||||
minH: 8,
|
||||
py: 0.5,
|
||||
alignItems: 'center',
|
||||
transitionProperty: 'opacity',
|
||||
transitionDuration: '0.1s',
|
||||
justifyContent: 'flex-end',
|
||||
} satisfies SystemStyleObject;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ const NodeCollapseButton = ({ nodeId, isOpen }: Props) => {
|
||||
<Icon
|
||||
as={PiCaretUpBold}
|
||||
transform={isOpen ? 'rotate(0deg)' : 'rotate(180deg)'}
|
||||
transitionProperty="common"
|
||||
transitionProperty="transform"
|
||||
transitionDuration="normal"
|
||||
/>
|
||||
}
|
||||
|
||||
@@ -23,8 +23,7 @@ const containerSx: SystemStyleObject = {
|
||||
h: 'full',
|
||||
position: 'relative',
|
||||
borderRadius: 'base',
|
||||
transitionProperty: 'common',
|
||||
transitionDuration: '0.1s',
|
||||
transitionProperty: 'none',
|
||||
cursor: 'grab',
|
||||
};
|
||||
|
||||
@@ -48,8 +47,7 @@ const inProgressSx: SystemStyleObject = {
|
||||
insetInlineStart: 0,
|
||||
borderRadius: 'md',
|
||||
pointerEvents: 'none',
|
||||
transitionProperty: 'common',
|
||||
transitionDuration: '0.1s',
|
||||
transitionProperty: 'none',
|
||||
opacity: 0.7,
|
||||
zIndex: -1,
|
||||
visibility: 'hidden',
|
||||
@@ -66,8 +64,7 @@ const selectionOverlaySx: SystemStyleObject = {
|
||||
bottom: 0,
|
||||
insetInlineStart: 0,
|
||||
borderRadius: 'base',
|
||||
transitionProperty: 'common',
|
||||
transitionDuration: '0.1s',
|
||||
transitionProperty: 'none',
|
||||
pointerEvents: 'none',
|
||||
visibility: 'hidden',
|
||||
opacity: 0.5,
|
||||
|
||||
Reference in New Issue
Block a user