Skip to content

Commit ad6ee0f

Browse files
committed
Add overflow: hidden to __child-wrapper
1 parent 10573ae commit ad6ee0f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-image-crop",
3-
"version": "11.0.0",
3+
"version": "11.0.1",
44
"description": "A responsive image cropping tool for React",
55
"repository": "https://github.com/DominicTobias/react-image-crop",
66
"type": "module",

src/ReactCrop.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ $mobile-media-query: '(pointer: coarse)' !default;
77
:root {
88
--rc-drag-handle-size: 12px;
99
--rc-drag-handle-mobile-size: 24px;
10+
--rc-drag-handle-bg-colour: rgba(0, 0, 0, 0.2);
1011
--rc-drag-bar-size: 6px; // The invisible grip size of the crop selection edges
11-
--rc-drag-handle-background-colour: rgba(0, 0, 0, 0.2);
1212
--rc-border-color: rgba(255, 255, 255, 0.7);
1313
--rc-focus-color: #0088ff;
1414
}
@@ -33,6 +33,7 @@ $mobile-media-query: '(pointer: coarse)' !default;
3333
}
3434

3535
&__child-wrapper {
36+
overflow: hidden;
3637
max-height: inherit;
3738

3839
& > img,
@@ -179,7 +180,7 @@ $mobile-media-query: '(pointer: coarse)' !default;
179180
position: absolute;
180181
width: var(--rc-drag-handle-size);
181182
height: var(--rc-drag-handle-size);
182-
background-color: var(--rc-drag-handle-background-colour);
183+
background-color: var(--rc-drag-handle-bg-colour);
183184
border: 1px solid var(--rc-border-color);
184185

185186
&:focus {

0 commit comments

Comments
 (0)