mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Fix for overlapping hover outline of widgets
This commit is contained in:
parent
80371db9bb
commit
b8eb38cdc9
1 changed files with 3 additions and 3 deletions
|
|
@ -134,7 +134,7 @@ export const DraggableBox = function DraggableBox({
|
||||||
}, [layoutData.height, layoutData.width, layoutData.left, layoutData.top, currentLayout]);
|
}, [layoutData.height, layoutData.width, layoutData.left, layoutData.top, currentLayout]);
|
||||||
|
|
||||||
function scaleWidth(width, scaleValue) {
|
function scaleWidth(width, scaleValue) {
|
||||||
let newWidth = width * scaleValue + 6;
|
let newWidth = width * scaleValue;
|
||||||
|
|
||||||
if(currentLayout === 'desktop') return newWidth;
|
if(currentLayout === 'desktop') return newWidth;
|
||||||
|
|
||||||
|
|
@ -145,7 +145,7 @@ export const DraggableBox = function DraggableBox({
|
||||||
...currentLayoutOptions,
|
...currentLayoutOptions,
|
||||||
left: currentLayoutOptions.left - diff
|
left: currentLayoutOptions.left - diff
|
||||||
});
|
});
|
||||||
|
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -165,7 +165,7 @@ export const DraggableBox = function DraggableBox({
|
||||||
|
|
||||||
<Rnd
|
<Rnd
|
||||||
style={{ ...style }}
|
style={{ ...style }}
|
||||||
size={{ width: scaleWidth(currentLayoutOptions.width, scaleValue), height: currentLayoutOptions.height + 6}}
|
size={{ width: scaleWidth(currentLayoutOptions.width, scaleValue) + 6, height: currentLayoutOptions.height + 6}}
|
||||||
position={{ x: currentLayoutOptions ? currentLayoutOptions.left : 0, y: currentLayoutOptions ? currentLayoutOptions.top : 0 }}
|
position={{ x: currentLayoutOptions ? currentLayoutOptions.left : 0, y: currentLayoutOptions ? currentLayoutOptions.top : 0 }}
|
||||||
defaultSize={{}}
|
defaultSize={{}}
|
||||||
className={`resizer ${mouseOver ? 'resizer-active' : ''}`}
|
className={`resizer ${mouseOver ? 'resizer-active' : ''}`}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue