File tree Expand file tree Collapse file tree 1 file changed +5
-22
lines changed
invokeai/frontend/web/src/features/gallery/components/ImageViewer Expand file tree Collapse file tree 1 file changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -103,24 +103,11 @@ const CurrentImagePreview = ({
103
103
dataTestId = "image-preview"
104
104
/>
105
105
) }
106
- < AnimatePresence >
107
- { shouldShowImageDetails && imageDTO && withMetadata && (
108
- < Box
109
- as = { motion . div }
110
- key = "metadataViewer"
111
- initial = { initial }
112
- animate = { animateMetadata }
113
- exit = { exit }
114
- position = "absolute"
115
- top = { 0 }
116
- width = "full"
117
- height = "full"
118
- borderRadius = "base"
119
- >
120
- < ImageMetadataViewer image = { imageDTO } />
121
- </ Box >
122
- ) }
123
- </ AnimatePresence >
106
+ { shouldShowImageDetails && imageDTO && withMetadata && (
107
+ < Box position = "absolute" opacity = { 0.8 } top = { 0 } width = "full" height = "full" borderRadius = "base" >
108
+ < ImageMetadataViewer image = { imageDTO } />
109
+ </ Box >
110
+ ) }
124
111
< AnimatePresence >
125
112
{ withNextPrevButtons && shouldShowNextPrevButtons && imageDTO && (
126
113
< Box
@@ -152,10 +139,6 @@ const animateArrows: AnimationProps['animate'] = {
152
139
opacity : 1 ,
153
140
transition : { duration : 0.07 } ,
154
141
} ;
155
- const animateMetadata : AnimationProps [ 'animate' ] = {
156
- opacity : 0.8 ,
157
- transition : { duration : 0.07 } ,
158
- } ;
159
142
const exit : AnimationProps [ 'exit' ] = {
160
143
opacity : 0 ,
161
144
transition : { duration : 0.07 } ,
You can’t perform that action at this time.
0 commit comments