From 470e6e528f847c65c769cd92f16853ee1bcb848c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bianchi Date: Mon, 18 Aug 2025 14:46:43 +0200 Subject: [PATCH] fix(Dashboard): prevent table rows from overlapping title and filters when scrolling Signed-off-by: Jean-Baptiste Bianchi --- .../WorkflowInstancesList.razor | 92 ++++++++++--------- .../Pages/Correlations/List/View.razor | 46 +++++----- .../Pages/Correlators/List/View.razor | 46 +++++----- .../Pages/Functions/List/View.razor | 26 +++--- .../Pages/Namespaces/List/View.razor | 26 +++--- .../Pages/Operators/List/View.razor | 46 +++++----- .../Pages/ServiceAccounts/List/View.razor | 46 +++++----- .../Pages/Workflows/List/View.razor | 66 ++++++------- 8 files changed, 198 insertions(+), 196 deletions(-) diff --git a/src/dashboard/Synapse.Dashboard/Components/WorkflowInstancesList/WorkflowInstancesList.razor b/src/dashboard/Synapse.Dashboard/Components/WorkflowInstancesList/WorkflowInstancesList.razor index 885ce59f..dd4043ea 100644 --- a/src/dashboard/Synapse.Dashboard/Components/WorkflowInstancesList/WorkflowInstancesList.razor +++ b/src/dashboard/Synapse.Dashboard/Components/WorkflowInstancesList/WorkflowInstancesList.razor @@ -16,56 +16,58 @@ @namespace Synapse.Dashboard.Components @inject JSInterop jsInterop +
+ @Title + @(WorkflowInstances?.Count() ?? 0) items +
+ @if (Workflows != null && Workflows.Count() > 0) + { + + } + @if (Namespaces != null && Namespaces.Count() > 0) + { + + } + @if (Operators != null && Operators.Count() > 0) + { + + } + + +
+
@if (Loading) { } -
- @Title - @(WorkflowInstances?.Count() ?? 0) items -
- @if (Workflows != null && Workflows.Count() > 0) { - - } - @if (Namespaces != null && Namespaces.Count() > 0) { - - } - @if (Operators != null && Operators.Count() > 0) - { - - } - - -
-
diff --git a/src/dashboard/Synapse.Dashboard/Pages/Correlations/List/View.razor b/src/dashboard/Synapse.Dashboard/Pages/Correlations/List/View.razor index 2e4ecdd3..b9b10f98 100644 --- a/src/dashboard/Synapse.Dashboard/Pages/Correlations/List/View.razor +++ b/src/dashboard/Synapse.Dashboard/Pages/Correlations/List/View.razor @@ -6,34 +6,34 @@ Correlations +
+

Correlations

+ @(Resources?.Count ?? 0) items +
+ + + +
+
@if (Loading) { } -
-

Correlations

- @(Resources?.Count ?? 0) items -
- - - -
-
diff --git a/src/dashboard/Synapse.Dashboard/Pages/Correlators/List/View.razor b/src/dashboard/Synapse.Dashboard/Pages/Correlators/List/View.razor index 3d1ea68d..790cd719 100644 --- a/src/dashboard/Synapse.Dashboard/Pages/Correlators/List/View.razor +++ b/src/dashboard/Synapse.Dashboard/Pages/Correlators/List/View.razor @@ -22,34 +22,34 @@ Correlators +
+

Correlators

+ @(Resources?.Count ?? 0) items +
+ + + +
+
@if (Loading) { } -
-

Correlators

- @(Resources?.Count ?? 0) items -
- - - -
-
diff --git a/src/dashboard/Synapse.Dashboard/Pages/Functions/List/View.razor b/src/dashboard/Synapse.Dashboard/Pages/Functions/List/View.razor index 36440432..57083c0a 100644 --- a/src/dashboard/Synapse.Dashboard/Pages/Functions/List/View.razor +++ b/src/dashboard/Synapse.Dashboard/Pages/Functions/List/View.razor @@ -24,24 +24,24 @@ Custom Functions +
+

Custom Functions

+ @(Resources?.Count ?? 0) items +
+ + +
+
@if (Loading) { } -
-

Custom Functions

- @(Resources?.Count ?? 0) items -
- - -
-
diff --git a/src/dashboard/Synapse.Dashboard/Pages/Namespaces/List/View.razor b/src/dashboard/Synapse.Dashboard/Pages/Namespaces/List/View.razor index 20614830..32f083b8 100644 --- a/src/dashboard/Synapse.Dashboard/Pages/Namespaces/List/View.razor +++ b/src/dashboard/Synapse.Dashboard/Pages/Namespaces/List/View.razor @@ -22,24 +22,24 @@ Namespaces +
+

Namespaces

+ @(Resources?.Count ?? 0) items +
+ +
+ +
@if (Loading) { } -
-

Namespaces

- @(Resources?.Count ?? 0) items -
- -
- -
diff --git a/src/dashboard/Synapse.Dashboard/Pages/Operators/List/View.razor b/src/dashboard/Synapse.Dashboard/Pages/Operators/List/View.razor index 7f453ab9..5d757f34 100644 --- a/src/dashboard/Synapse.Dashboard/Pages/Operators/List/View.razor +++ b/src/dashboard/Synapse.Dashboard/Pages/Operators/List/View.razor @@ -22,34 +22,34 @@ Operators +
+

Operators

+ @(Resources?.Count ?? 0) items +
+ + + +
+
@if (Loading) { } -
-

Operators

- @(Resources?.Count ?? 0) items -
- - - -
-
diff --git a/src/dashboard/Synapse.Dashboard/Pages/ServiceAccounts/List/View.razor b/src/dashboard/Synapse.Dashboard/Pages/ServiceAccounts/List/View.razor index ae7b5438..bd9a9ea5 100644 --- a/src/dashboard/Synapse.Dashboard/Pages/ServiceAccounts/List/View.razor +++ b/src/dashboard/Synapse.Dashboard/Pages/ServiceAccounts/List/View.razor @@ -22,34 +22,34 @@ Service Accounts +
+

Service Accounts

+ @(Resources?.Count ?? 0) items +
+ + + +
+
@if (Loading) { } -
-

Service Accounts

- @(Resources?.Count ?? 0) items -
- - - -
-
diff --git a/src/dashboard/Synapse.Dashboard/Pages/Workflows/List/View.razor b/src/dashboard/Synapse.Dashboard/Pages/Workflows/List/View.razor index 75cb7fea..7e8989d2 100644 --- a/src/dashboard/Synapse.Dashboard/Pages/Workflows/List/View.razor +++ b/src/dashboard/Synapse.Dashboard/Pages/Workflows/List/View.razor @@ -25,45 +25,45 @@ Workflows -
- @if (Loading) - { - - } -
-

Workflows

- @(Resources?.Count ?? 0) items -
- + + @if (Namespaces != null && Namespaces.Count > 0) + { + foreach (var namespaceResource in Namespaces) { - foreach (var namespaceResource in Namespaces) - { - - } + } - - + - - + } + + +
+
+
+ @if (Loading) + { + + }