From d6af228bb6da2dfa93967c031a945674bc1e8984 Mon Sep 17 00:00:00 2001 From: baudelotphilippe Date: Tue, 10 Dec 2024 11:18:10 +0100 Subject: [PATCH 1/3] fix click on < for Filter columns --- otoroshi/javascript/src/components/Toasts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otoroshi/javascript/src/components/Toasts.js b/otoroshi/javascript/src/components/Toasts.js index 910f7e511..0b622c850 100644 --- a/otoroshi/javascript/src/components/Toasts.js +++ b/otoroshi/javascript/src/components/Toasts.js @@ -92,7 +92,7 @@ export class Toasts extends Component {
Date: Tue, 10 Dec 2024 16:45:32 +0100 Subject: [PATCH 2/3] improve ux --- .../javascript/src/components/inputs/Table.js | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/otoroshi/javascript/src/components/inputs/Table.js b/otoroshi/javascript/src/components/inputs/Table.js index b7769e58f..6eac4ecf8 100644 --- a/otoroshi/javascript/src/components/inputs/Table.js +++ b/otoroshi/javascript/src/components/inputs/Table.js @@ -90,18 +90,21 @@ function ColumnsSelector({ fields, onChange, fetchTemplate, addField, removeFiel onClick={(e) => e.stopPropagation()} >
-
- { - if (isCustomFieldView) showCustomField(false); - else closeTab(); - }} - /> -

- {isCustomFieldView ? 'New custom field' : 'Columns'} -

+
+
+ { + if (isCustomFieldView) showCustomField(false); + else closeTab(); + }} + /> +

+ {isCustomFieldView ? 'New column' : 'Columns'} +

+
+
@@ -110,7 +113,7 @@ function ColumnsSelector({ fields, onChange, fetchTemplate, addField, removeFiel )} -
{enabled && onChange(column, false)} />} @@ -216,14 +219,13 @@ function ColumnsSelector({ fields, onChange, fetchTemplate, addField, removeFiel }} onClick={() => showCustomField(true)} > - Add custom field + Add a column )}
-
@@ -232,8 +234,8 @@ function ColumnsSelector({ fields, onChange, fetchTemplate, addField, removeFiel className="ms-auto btn-sm d-flex align-items-center mb-1" onClick={() => setOpen(true)} > - - Filter columns + + Columns ); From d98f1759e5574a1c6347ee2831a5f866c341c750 Mon Sep 17 00:00:00 2001 From: baudelotphilippe Date: Tue, 10 Dec 2024 16:59:14 +0100 Subject: [PATCH 3/3] fix horizontal scroll --- otoroshi/javascript/src/style/components/_reactTable.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/otoroshi/javascript/src/style/components/_reactTable.scss b/otoroshi/javascript/src/style/components/_reactTable.scss index 3b6a0b887..6af11dcea 100644 --- a/otoroshi/javascript/src/style/components/_reactTable.scss +++ b/otoroshi/javascript/src/style/components/_reactTable.scss @@ -1,5 +1,6 @@ .ReactTable { border: none !important; + overflow-y: scroll; input { color: var(--color_level2) !important;