fix: 리사이즈 핸들 클릭 영역 개선
- 핸들 너비를 1px에서 2px로 증가 - z-index: 20 추가로 다른 요소 위에 표시 - padding과 negative margin으로 클릭 영역 확대 (좌우 4px씩) - onClick에 stopPropagation 추가하여 정렬 클릭 방지 - 더 쉽게 클릭하고 드래그할 수 있도록 개선
This commit is contained in:
parent
787bfd363f
commit
4a5c21a3ba
|
|
@ -1951,7 +1951,9 @@ export const InteractiveDataTable: React.FC<InteractiveDataTableProps> = ({
|
|||
{/* 리사이즈 핸들 */}
|
||||
{columnIndex < visibleColumns.length - 1 && (
|
||||
<div
|
||||
className="absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-blue-500"
|
||||
className="absolute right-0 top-0 h-full w-2 cursor-col-resize hover:bg-blue-500 z-20"
|
||||
style={{ marginRight: '-4px', paddingLeft: '4px', paddingRight: '4px' }}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
onMouseDown={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation(); // 상위 컴포넌트 드래그 이벤트 방지
|
||||
|
|
|
|||
|
|
@ -1051,7 +1051,8 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
|
|||
{/* 리사이즈 핸들 */}
|
||||
{columnIndex < visibleColumns.length - 1 && (
|
||||
<div
|
||||
className="absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-blue-500"
|
||||
className="absolute right-0 top-0 h-full w-2 cursor-col-resize hover:bg-blue-500 z-20"
|
||||
style={{ marginRight: '-4px', paddingLeft: '4px', paddingRight: '4px' }}
|
||||
onClick={(e) => e.stopPropagation()} // 정렬 클릭 방지
|
||||
onMouseDown={(e) => {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
Loading…
Reference in New Issue