From 05ed811071780cc06720a7e4ecfa93857bb43264 Mon Sep 17 00:00:00 2001 From: Joao Rua Date: Wed, 24 Jul 2024 13:04:26 +0100 Subject: [PATCH] webapp page are now responsive => page structures will change based on the screen size --- .../Common/DataItemDetailsComponent.razor | 4 +- .../Common/DataItemDetailsComponent.razor.cs | 6 + .../Common/DataItemDetailsComponent.razor.css | 6 - .../CommonFileStoresTable.razor | 4 +- .../DomainFileStoresTable.razor | 6 +- .../EngineeringModel/OptionsTable.razor | 6 +- .../ModelEditor/ElementDefinitionTable.razor | 118 +++++++++--------- .../ParameterEditor/ParameterTable.razor.css | 2 +- .../Categories/CategoriesTable.razor | 6 +- .../MeasurementScalesTable.razor | 6 +- .../MeasurementUnitsTable.razor | 4 +- .../ParameterTypes/ParameterTypeTable.razor | 7 +- .../DomainsOfExpertiseTable.razor | 4 +- .../EngineeringModelsTable.razor | 6 +- .../SiteDirectory/OrganizationsTable.razor | 4 +- .../Roles/ParticipantRolesTable.razor | 6 +- .../Roles/PersonRolesTable.razor | 6 +- .../UserManagement/UserManagementTable.razor | 6 +- .../Tabs/TabsPanelComponent.razor.css | 3 +- COMETwebapp/Pages/_Host.cshtml | 2 +- COMETwebapp/wwwroot/css/app.css | 25 ++++ 21 files changed, 130 insertions(+), 107 deletions(-) diff --git a/COMETwebapp/Components/Common/DataItemDetailsComponent.razor b/COMETwebapp/Components/Common/DataItemDetailsComponent.razor index 23479e20..8448bcc8 100644 --- a/COMETwebapp/Components/Common/DataItemDetailsComponent.razor +++ b/COMETwebapp/Components/Common/DataItemDetailsComponent.razor @@ -17,7 +17,7 @@ Copyright (c) 2023-2024 Starion Group S.A. @namespace COMETwebapp.Components.Common -
+
@if (this.IsSelected) { @@ -43,4 +43,4 @@ Copyright (c) 2023-2024 Starion Group S.A.
}
-
\ No newline at end of file + diff --git a/COMETwebapp/Components/Common/DataItemDetailsComponent.razor.cs b/COMETwebapp/Components/Common/DataItemDetailsComponent.razor.cs index 7fb72554..bf0790b7 100644 --- a/COMETwebapp/Components/Common/DataItemDetailsComponent.razor.cs +++ b/COMETwebapp/Components/Common/DataItemDetailsComponent.razor.cs @@ -66,5 +66,11 @@ public partial class DataItemDetailsComponent /// [Parameter] public string Width { get; set; } = "50%"; + + /// + /// The custom css class to be used in the container component + /// + [Parameter] + public string CssClass { get; set; } } } diff --git a/COMETwebapp/Components/Common/DataItemDetailsComponent.razor.css b/COMETwebapp/Components/Common/DataItemDetailsComponent.razor.css index 04dc5f92..b737c6d7 100644 --- a/COMETwebapp/Components/Common/DataItemDetailsComponent.razor.css +++ b/COMETwebapp/Components/Common/DataItemDetailsComponent.razor.css @@ -6,12 +6,6 @@ overflow: auto; } -.data-items-panel-container { - max-height: 90vh; - position: sticky; - top: 10px; -} - .data-item-details-image { margin: auto; display: block; diff --git a/COMETwebapp/Components/EngineeringModel/CommonFileStoresTable.razor b/COMETwebapp/Components/EngineeringModel/CommonFileStoresTable.razor index ba1e3a15..99489778 100644 --- a/COMETwebapp/Components/EngineeringModel/CommonFileStoresTable.razor +++ b/COMETwebapp/Components/EngineeringModel/CommonFileStoresTable.razor @@ -16,7 +16,7 @@ Copyright (c) 2023-2024 Starion Group S.A. -------------------------------------------------------------------------------> @inherits SelectedDataItemBase -
+
+ CssClass="selected-data-item-table"> diff --git a/COMETwebapp/Components/EngineeringModel/DomainFileStore/DomainFileStoresTable.razor b/COMETwebapp/Components/EngineeringModel/DomainFileStore/DomainFileStoresTable.razor index 1c8ecb55..f95a9bd5 100644 --- a/COMETwebapp/Components/EngineeringModel/DomainFileStore/DomainFileStoresTable.razor +++ b/COMETwebapp/Components/EngineeringModel/DomainFileStore/DomainFileStoresTable.razor @@ -16,7 +16,7 @@ Copyright (c) 2023-2024 Starion Group S.A. -------------------------------------------------------------------------------> @inherits SelectedDataItemBase -
+
+ CssClass="selected-data-item-table"> @@ -55,4 +55,4 @@ Copyright (c) 2023-2024 Starion Group S.A.
- \ No newline at end of file + diff --git a/COMETwebapp/Components/EngineeringModel/OptionsTable.razor b/COMETwebapp/Components/EngineeringModel/OptionsTable.razor index 09c6e199..5dd1cd09 100644 --- a/COMETwebapp/Components/EngineeringModel/OptionsTable.razor +++ b/COMETwebapp/Components/EngineeringModel/OptionsTable.razor @@ -16,7 +16,7 @@ Copyright (c) 2023-2024 Starion Group S.A. -------------------------------------------------------------------------------> @inherits SelectedDataItemBase -
+
+ CssClass="selected-data-item-table"> @@ -57,4 +57,4 @@ Copyright (c) 2023-2024 Starion Group S.A.
- \ No newline at end of file + diff --git a/COMETwebapp/Components/ModelEditor/ElementDefinitionTable.razor b/COMETwebapp/Components/ModelEditor/ElementDefinitionTable.razor index 95cec68d..95e817d2 100644 --- a/COMETwebapp/Components/ModelEditor/ElementDefinitionTable.razor +++ b/COMETwebapp/Components/ModelEditor/ElementDefinitionTable.razor @@ -26,69 +26,69 @@ -
-
-

Source Model

-
- - - - - - - +
+
+
+

Source Model

+
+ + + + + + + +
-
-
-

Target Model

-
- - - - - - +
+

Target Model

+
+ + + + + + +
+ +
+

Panel Editor

+
+ @if (this.ViewModel.SelectedElementDefinition is not null) + { + + } -
- -
-

Panel Editor

-
- @if (this.ViewModel.SelectedElementDefinition is not null) - { - - } - - -
+
-
- -
-
-
+
+
+ +
+
@@ -101,4 +101,4 @@ - \ No newline at end of file + diff --git a/COMETwebapp/Components/ParameterEditor/ParameterTable.razor.css b/COMETwebapp/Components/ParameterEditor/ParameterTable.razor.css index d81344c3..8ed4fa6f 100644 --- a/COMETwebapp/Components/ParameterEditor/ParameterTable.razor.css +++ b/COMETwebapp/Components/ParameterEditor/ParameterTable.razor.css @@ -16,7 +16,7 @@ } .table-container { - min-width: 1400px; + width: fit-content; margin-top: 15px; max-height: 80vh; } \ No newline at end of file diff --git a/COMETwebapp/Components/ReferenceData/Categories/CategoriesTable.razor b/COMETwebapp/Components/ReferenceData/Categories/CategoriesTable.razor index 8bb028a0..57ab713e 100644 --- a/COMETwebapp/Components/ReferenceData/Categories/CategoriesTable.razor +++ b/COMETwebapp/Components/ReferenceData/Categories/CategoriesTable.razor @@ -1,7 +1,7 @@  @inherits SelectedDeprecatableDataItemBase -
+
+ CssClass="selected-data-item-table"> @@ -54,4 +54,4 @@ Copyright (c) 2024 Starion Group S.A. ShouldCreate="@(this.ShouldCreateThing)" OnSaved="@(this.OnSaved)"/> -
\ No newline at end of file +
diff --git a/COMETwebapp/Components/SiteDirectory/Roles/PersonRolesTable.razor b/COMETwebapp/Components/SiteDirectory/Roles/PersonRolesTable.razor index 58dd4f18..70edb9b7 100644 --- a/COMETwebapp/Components/SiteDirectory/Roles/PersonRolesTable.razor +++ b/COMETwebapp/Components/SiteDirectory/Roles/PersonRolesTable.razor @@ -21,7 +21,7 @@ Copyright (c) 2024 Starion Group S.A. -------------------------------------------------------------------------------> @inherits SelectedDeprecatableDataItemBase -
+
+ CssClass="selected-data-item-table"> @@ -54,4 +54,4 @@ Copyright (c) 2024 Starion Group S.A. ShouldCreate="@(this.ShouldCreateThing)" OnSaved="@(this.OnSaved)"/> -
\ No newline at end of file +
diff --git a/COMETwebapp/Components/SiteDirectory/UserManagement/UserManagementTable.razor b/COMETwebapp/Components/SiteDirectory/UserManagement/UserManagementTable.razor index 7f45ed72..bae98050 100644 --- a/COMETwebapp/Components/SiteDirectory/UserManagement/UserManagementTable.razor +++ b/COMETwebapp/Components/SiteDirectory/UserManagement/UserManagementTable.razor @@ -22,7 +22,7 @@ @inherits SelectedDeprecatableDataItemBase -
+
+ CssClass="selected-data-item-table"> @@ -77,4 +77,4 @@ OnSaved="@(this.OnSaved)"/>
- \ No newline at end of file + diff --git a/COMETwebapp/Components/Tabs/TabsPanelComponent.razor.css b/COMETwebapp/Components/Tabs/TabsPanelComponent.razor.css index 86083126..2aeae5eb 100644 --- a/COMETwebapp/Components/Tabs/TabsPanelComponent.razor.css +++ b/COMETwebapp/Components/Tabs/TabsPanelComponent.razor.css @@ -3,11 +3,10 @@ border-bottom: solid 1px var(--colors-gray-100); padding: 16px; border-radius: 24px 0px 0px 0px; - min-width: 60vw; + overflow: auto; } #tabs-page-content { - min-width: 60vw; } .panel-view { diff --git a/COMETwebapp/Pages/_Host.cshtml b/COMETwebapp/Pages/_Host.cshtml index c088a830..b5d85f98 100644 --- a/COMETwebapp/Pages/_Host.cshtml +++ b/COMETwebapp/Pages/_Host.cshtml @@ -2,7 +2,7 @@