mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +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:
@@ -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