Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multi-sorting when the shift key is pressed #8349

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tribler/ui/src/components/ui/simple-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function getHeader<T>(name: string, translate: boolean = true, addSorting
<div className='select-none flex'>
<span
className="cursor-pointer hover:text-black dark:hover:text-white flex flex-row items-center"
onClick={() => column.toggleSorting()}>
onClick={(e) => column.toggleSorting(undefined, e.shiftKey)}>
{translate ? t(name) : name}
{column.getIsSorted() === "desc" ? (
<ArrowDownIcon className="ml-2" />
Expand Down
Loading