@@ -821,10 +821,11 @@ const GridControl = React.memo<GridControlProps>(({ grid }) => {
821
821
const isActiveCell =
822
822
countedColumn === currentHoveredCell ?. column && countedRow === currentHoveredCell ?. row
823
823
824
- const borderColor =
825
- isActiveCell && targetsAreCellsWithPositioning
826
- ? colorTheme . brandNeonPink . value
827
- : colorTheme . blackOpacity35 . value
824
+ const activePositioningTarget = isActiveCell && targetsAreCellsWithPositioning
825
+
826
+ const borderColor = activePositioningTarget
827
+ ? colorTheme . brandNeonPink . value
828
+ : colorTheme . grey65 . value
828
829
return (
829
830
< div
830
831
key = { id }
@@ -834,6 +835,7 @@ const GridControl = React.memo<GridControlProps>(({ grid }) => {
834
835
style = { {
835
836
position : 'relative' ,
836
837
pointerEvents : 'initial' ,
838
+ zIndex : activePositioningTarget ? 1 : undefined ,
837
839
} }
838
840
data-grid-row = { countedRow }
839
841
data-grid-column = { countedColumn }
@@ -851,18 +853,8 @@ const GridControl = React.memo<GridControlProps>(({ grid }) => {
851
853
height : gridPlaceholderWidthOrHeight ( scale ) ,
852
854
borderTop : gridPlaceholderBorder ( borderColor , scale ) ,
853
855
borderLeft : gridPlaceholderBorder ( borderColor , scale ) ,
854
- borderBottom :
855
- isActiveCell ||
856
- countedRow >= grid . rows ||
857
- ( grid . rowGap != null && grid . rowGap > 0 )
858
- ? gridPlaceholderBorder ( borderColor , scale )
859
- : undefined ,
860
- borderRight :
861
- isActiveCell ||
862
- countedColumn >= grid . columns ||
863
- ( grid . columnGap != null && grid . columnGap > 0 )
864
- ? gridPlaceholderBorder ( borderColor , scale )
865
- : undefined ,
856
+ borderBottom : gridPlaceholderBorder ( borderColor , scale ) ,
857
+ borderRight : gridPlaceholderBorder ( borderColor , scale ) ,
866
858
} }
867
859
/>
868
860
</ React . Fragment >
0 commit comments