Skip to content

Commit

Permalink
feat: make results grid table columns resizable
Browse files Browse the repository at this point in the history
Closes #738
  • Loading branch information
stdavis committed Nov 26, 2024
1 parent a4612cd commit 4bfb2b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utah-design-system/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ function InnerTable(
/>
),
}[header.column.getIsSorted()] ?? null}
<button
onMouseDown={header.getResizeHandler()}
onTouchStart={header.getResizeHandler()}
className="user-select-none absolute right-0 top-0 h-full w-1.5 cursor-col-resize touch-none hover:bg-slate-200"
tabIndex={0}
aria-label="Resize column"
/>
</div>
)}
</th>
Expand Down

0 comments on commit 4bfb2b0

Please sign in to comment.