mirror of
https://github.com/outline/outline.git
synced 2026-12-06 03:05:08 +03:00
Enable swipe actions on "Image failed to load" component within Lightbox (#10153)
* fix: apply swipe actions on error component
* fix: enable copy and download action btns only when the image is loaded
* Revert "fix: enable copy and download action btns only when the image is loaded"
This reverts commit 9228d5e5df.
This commit is contained in:
1 parent
f3fe7283f8
commit
f1bc5f6216
1 file changed
+1
-1
@@ -625,7 +625,7 @@ const Image = forwardRef<HTMLImageElement, ImageProps>(function _Image(
|
||||
}, [status.image]);
|
||||
|
||||
return status.image === ImageStatus.ERROR ? (
|
||||
<StyledError animation={animation}>
|
||||
<StyledError animation={animation} {...swipeHandlers}>
|
||||
<CrossIcon size={16} /> {t("Image failed to load")}
|
||||
</StyledError>
|
||||
) : (
|
||||
|
||||
Reference in new issue
Block a user