chore(deps-dev): bump prettier from 2.1.2 to 2.8.8 (#5372)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
dependabot[bot]
2023-05-22 19:14:56 -07:00
committed by GitHub
parent 3317bf2396
commit fbd16d4b9a
73 changed files with 556 additions and 645 deletions

View File

@@ -100,18 +100,18 @@ const Image = (
document.removeEventListener("mousemove", handlePointerMove);
};
const handlePointerDown = (dragging: "left" | "right") => (
event: React.PointerEvent<HTMLDivElement>
) => {
event.preventDefault();
event.stopPropagation();
setSizeAtDragStart({
width: constrainWidth(size.width),
height: size.height,
});
setOffset(event.pageX);
setDragging(dragging);
};
const handlePointerDown =
(dragging: "left" | "right") =>
(event: React.PointerEvent<HTMLDivElement>) => {
event.preventDefault();
event.stopPropagation();
setSizeAtDragStart({
width: constrainWidth(size.width),
height: size.height,
});
setOffset(event.pageX);
setDragging(dragging);
};
const handleKeyDown = (event: KeyboardEvent) => {
if (event.key === "Escape") {
@@ -170,11 +170,14 @@ const Image = (
onClick={dragging ? undefined : props.onClick}
style={widthStyle}
>
{!dragging && size.width > 60 && size.height > 60 && props.onDownload && (
<Button onClick={props.onDownload}>
<DownloadIcon />
</Button>
)}
{!dragging &&
size.width > 60 &&
size.height > 60 &&
props.onDownload && (
<Button onClick={props.onDownload}>
<DownloadIcon />
</Button>
)}
<ImageZoom zoomMargin={24}>
<img
style={{