Skip to content

Commit

Permalink
Add overflow: hidden to __child-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
sekoyo committed Dec 1, 2023
1 parent 10573ae commit ad6ee0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-image-crop",
"version": "11.0.0",
"version": "11.0.1",
"description": "A responsive image cropping tool for React",
"repository": "https://github.com/DominicTobias/react-image-crop",
"type": "module",
Expand Down
5 changes: 3 additions & 2 deletions src/ReactCrop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ $mobile-media-query: '(pointer: coarse)' !default;
:root {
--rc-drag-handle-size: 12px;
--rc-drag-handle-mobile-size: 24px;
--rc-drag-handle-bg-colour: rgba(0, 0, 0, 0.2);
--rc-drag-bar-size: 6px; // The invisible grip size of the crop selection edges
--rc-drag-handle-background-colour: rgba(0, 0, 0, 0.2);
--rc-border-color: rgba(255, 255, 255, 0.7);
--rc-focus-color: #0088ff;
}
Expand All @@ -33,6 +33,7 @@ $mobile-media-query: '(pointer: coarse)' !default;
}

&__child-wrapper {
overflow: hidden;
max-height: inherit;

& > img,
Expand Down Expand Up @@ -179,7 +180,7 @@ $mobile-media-query: '(pointer: coarse)' !default;
position: absolute;
width: var(--rc-drag-handle-size);
height: var(--rc-drag-handle-size);
background-color: var(--rc-drag-handle-background-colour);
background-color: var(--rc-drag-handle-bg-colour);
border: 1px solid var(--rc-border-color);

&:focus {
Expand Down

0 comments on commit ad6ee0f

Please sign in to comment.