From bf4d37fded671a18e51da6585b3af2985e450746 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Fri, 15 Dec 2023 12:47:00 +0100 Subject: [PATCH] feat: disable sorting on selected columns (#5652) --- frontend/src/component/common/TooltipLink/TooltipLink.tsx | 1 + .../feature/FeatureToggleList/FeatureToggleListTable.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/frontend/src/component/common/TooltipLink/TooltipLink.tsx b/frontend/src/component/common/TooltipLink/TooltipLink.tsx index 428c050a8c80..a2998e15ccee 100644 --- a/frontend/src/component/common/TooltipLink/TooltipLink.tsx +++ b/frontend/src/component/common/TooltipLink/TooltipLink.tsx @@ -10,6 +10,7 @@ const StyledLink = styled(Link, { textDecorationColor: theme.palette.text.disabled, textDecorationStyle: 'dashed', textUnderlineOffset: theme.spacing(0.5), + whiteSpace: 'nowrap', })); interface ITooltipLinkProps extends LinkProps { diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx index e675f52012a8..0bbe91eeceed 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx @@ -188,6 +188,7 @@ const FeatureToggleListTableComponent: VFC = () => { cell: ({ getValue, row }) => ( ), + enableSorting: false, }), columnHelper.accessor( (row) => @@ -199,6 +200,7 @@ const FeatureToggleListTableComponent: VFC = () => { cell: ({ getValue, row }) => ( ), + enableSorting: false, }, ), columnHelper.accessor('createdAt', { @@ -217,6 +219,7 @@ const FeatureToggleListTableComponent: VFC = () => { columnHelper.accessor('stale', { header: 'State', cell: ({ getValue }) => , + enableSorting: false, }), ], [tableState.favoritesFirst],