ui수정
This commit is contained in:
@@ -515,14 +515,14 @@ export function RepeaterTable({
|
||||
width: `max(100%, ${Object.values(columnWidths).reduce((sum, w) => sum + w, 0) + 74}px)`,
|
||||
}}
|
||||
>
|
||||
<thead className="sticky top-0 z-10 bg-gray-50">
|
||||
<thead className="sticky top-0 z-20 bg-gray-50">
|
||||
<tr>
|
||||
{/* 드래그 핸들 헤더 */}
|
||||
<th className="w-8 border-r border-b border-gray-200 px-1 py-2 text-center font-medium text-gray-700">
|
||||
{/* 드래그 핸들 헤더 - 좌측 고정 */}
|
||||
<th className="sticky left-0 z-30 w-8 border-r border-b border-gray-200 bg-gray-50 px-1 py-2 text-center font-medium text-gray-700">
|
||||
<span className="sr-only">순서</span>
|
||||
</th>
|
||||
{/* 체크박스 헤더 */}
|
||||
<th className="w-10 border-r border-b border-gray-200 px-3 py-2 text-center font-medium text-gray-700">
|
||||
{/* 체크박스 헤더 - 좌측 고정 */}
|
||||
<th className="sticky left-8 z-30 w-10 border-r border-b border-gray-200 bg-gray-50 px-3 py-2 text-center font-medium text-gray-700">
|
||||
<Checkbox
|
||||
checked={isAllSelected}
|
||||
// @ts-expect-error - indeterminate는 HTML 속성
|
||||
@@ -649,8 +649,11 @@ export function RepeaterTable({
|
||||
>
|
||||
{({ attributes, listeners, isDragging }) => (
|
||||
<>
|
||||
{/* 드래그 핸들 */}
|
||||
<td className="border-r border-b border-gray-200 px-1 py-1 text-center">
|
||||
{/* 드래그 핸들 - 좌측 고정 */}
|
||||
<td className={cn(
|
||||
"sticky left-0 z-10 border-r border-b border-gray-200 px-1 py-1 text-center",
|
||||
selectedRows.has(rowIndex) ? "bg-blue-50" : "bg-white"
|
||||
)}>
|
||||
<button
|
||||
type="button"
|
||||
className={cn(
|
||||
@@ -663,8 +666,11 @@ export function RepeaterTable({
|
||||
<GripVertical className="h-4 w-4 text-gray-400" />
|
||||
</button>
|
||||
</td>
|
||||
{/* 체크박스 */}
|
||||
<td className="border-r border-b border-gray-200 px-3 py-1 text-center">
|
||||
{/* 체크박스 - 좌측 고정 */}
|
||||
<td className={cn(
|
||||
"sticky left-8 z-10 border-r border-b border-gray-200 px-3 py-1 text-center",
|
||||
selectedRows.has(rowIndex) ? "bg-blue-50" : "bg-white"
|
||||
)}>
|
||||
<Checkbox
|
||||
checked={selectedRows.has(rowIndex)}
|
||||
onCheckedChange={(checked) => handleRowSelect(rowIndex, !!checked)}
|
||||
|
||||
Reference in New Issue
Block a user