File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/webapp/src/components/chat/bubbles Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export function ImageBubble({
107107 </ div >
108108 ) : (
109109 < >
110- { /* Spinner overlay while loading */ }
110+ { /* Spinner placeholder while image is loading */ }
111111 { ! loaded && (
112112 < div className = "flex h-48 w-[280px] items-center justify-center rounded-[4px] bg-muted" >
113113 < svg
@@ -129,7 +129,9 @@ export function ImageBubble({
129129 loading = "lazy"
130130 onLoad = { ( ) => setLoaded ( true ) }
131131 onError = { handleError }
132- className = { `block max-h-72 max-w-[280px] cursor-zoom-in rounded-[4px] object-cover${ loaded ? "" : " hidden" } ` }
132+ className = { loaded
133+ ? "block max-h-72 max-w-[280px] cursor-zoom-in rounded-[4px] object-cover"
134+ : "absolute h-0 w-0 opacity-0 overflow-hidden" }
133135 />
134136 </ DialogTrigger >
135137 < DialogContent className = "max-w-4xl bg-black/95 p-2" aria-describedby = { undefined } >
You can’t perform that action at this time.
0 commit comments