fix(dashboard): unable to resize due to the overlapped droptarget (#28772)

This commit is contained in:
JUST.in DO IT 2024-05-30 13:08:33 -07:00 committed by GitHub
parent 2dbb44b725
commit ce568c34f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -47,6 +47,12 @@ const StyledDiv = styled.div`
& .grid-row:after {
border-style: hidden;
}
& .droptarget-side:last-child {
inset-inline-end: 0;
}
& .droptarget-edge:last-child {
inset-block-end: 0;
}
}
/* A row within a column has inset hover menu */

View File

@ -98,9 +98,6 @@ const ColumnStyles = styled.div`
&:first-child {
inset-block-start: 0;
}
&:last-child {
inset-block-end: 0;
}
}
&:first-child:not(.droptarget-edge) {
position: absolute;
@ -295,7 +292,7 @@ class Column extends React.PureComponent {
className={cx(
'empty-droptarget',
itemIndex === columnItems.length - 1 &&
'droptarget-edge-last',
'droptarget-edge',
)}
editMode
>

View File

@ -107,9 +107,6 @@ const GridRow = styled.div`
&:first-child {
inset-inline-start: 0;
}
&:last-child {
inset-inline-end: 0;
}
}
}