File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
invokeai/frontend/web/src/features/controlLayers/components/RefImage Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change
1
+ import type { SystemStyleObject } from '@invoke-ai/ui-library' ;
1
2
import {
2
3
Divider ,
3
4
Flex ,
@@ -79,6 +80,18 @@ export const RefImage = memo(() => {
79
80
} ) ;
80
81
RefImage . displayName = 'RefImage' ;
81
82
83
+ const imageSx : SystemStyleObject = {
84
+ opacity : 0.7 ,
85
+ transitionProperty : 'opacity' ,
86
+ transitionDuration : 'normal' ,
87
+ _hover : {
88
+ opacity : 1 ,
89
+ } ,
90
+ '&[data-is-open="true"]' : {
91
+ opacity : 1 ,
92
+ } ,
93
+ } ;
94
+
82
95
const Thumbnail = memo ( ( { disclosure } : { disclosure : UseDisclosure } ) => {
83
96
const id = useRefImageIdContext ( ) ;
84
97
const entity = useRefImageEntity ( id ) ;
@@ -123,8 +136,8 @@ const Thumbnail = memo(({ disclosure }: { disclosure: UseDisclosure }) => {
123
136
borderRadius = "base"
124
137
onClick = { disclosure . toggle }
125
138
flexShrink = { 0 }
126
- // sx={imageSx}
127
- // data-is-open={disclosure.isOpen}
139
+ sx = { imageSx }
140
+ data-is-open = { disclosure . isOpen }
128
141
/>
129
142
</ PopoverAnchor >
130
143
) ;
You can’t perform that action at this time.
0 commit comments