From eb20985fefb0c446500a25b577bf3fe303e88856 Mon Sep 17 00:00:00 2001 From: Radek Podrazky Date: Fri, 4 Oct 2024 15:14:37 +0200 Subject: [PATCH] fix(DatatableV2): make header sticky in settings panel Closes UXD-1645 --- .../DatatableV2/panels/Settings.tsx | 183 +++++++++--------- 1 file changed, 95 insertions(+), 88 deletions(-) diff --git a/src/components/DatatableV2/panels/Settings.tsx b/src/components/DatatableV2/panels/Settings.tsx index 77b45002c..153d32c4a 100644 --- a/src/components/DatatableV2/panels/Settings.tsx +++ b/src/components/DatatableV2/panels/Settings.tsx @@ -157,102 +157,109 @@ const Settings = ({ table }: { table: DatatableInstance }) => { return ( - - - - - {t('sscds|datatable.settings.title')} - - setShowColumnSettings(false)} - /> - - - - - -
- -
- - {enableHiding && ( - - -
- - handleToggleAllColumnsVisibility(e.target.checked) - } - /> -
-
- )} - {enableColumnPinning && ( - - -
- - handleToggleAllColumnsPinnability(e.target.checked) - } - /> -
-
- )} + + + + + {t('sscds|datatable.settings.title')} + setShowColumnSettings(false)} + /> - -
-
+ + + + +
+ +
+ + {enableHiding && ( + + +
+ + handleToggleAllColumnsVisibility(e.target.checked) + } + /> +
+
+ )} + {enableColumnPinning && ( + + +
+ + handleToggleAllColumnsPinnability(e.target.checked) + } + /> +
+
+ )} +
+
+ +
+
+
); };