From 835a29394b967b09a81f49ba0aa3dd64aeadcc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20Gabri=C3=ABl?= Date: Tue, 24 Sep 2024 09:59:24 +0200 Subject: [PATCH] Visual and UX changes for WFS previews (#8284) * Visual and UX improvements to the WFS preview: - added whitespace - remove border for the selection lists - re-order buttons - toolbar positioned on the right of the table - larger buttons in the metadata page and map * Visual and UX improvements to the WFS preview: - pushed missing changes * Visual and UX improvements to the WFS preview: - fix the removal of borders in all map panels * Fix for the missing variables: they have been replaced by actual values --- .../search/mdview/partials/datapreview.html | 4 +- .../viewer/gfi/partials/featurestables.html | 11 +- .../wfsfilter/partials/wfsfilterfacet.html | 120 +++++++++--------- .../src/main/resources/catalog/style/gn.less | 3 + .../resources/catalog/style/gn_viewer.less | 85 ++++++++++++- 5 files changed, 151 insertions(+), 72 deletions(-) diff --git a/web-ui/src/main/resources/catalog/components/search/mdview/partials/datapreview.html b/web-ui/src/main/resources/catalog/components/search/mdview/partials/datapreview.html index dca4cf4e11e..e49c707a527 100644 --- a/web-ui/src/main/resources/catalog/components/search/mdview/partials/datapreview.html +++ b/web-ui/src/main/resources/catalog/components/search/mdview/partials/datapreview.html @@ -1,7 +1,7 @@
-
+
-
+
-
- - {{table.name}}  {{table.loader.getCount()}} - features - -
+ +

+ {{table.name}} +

+ + +

+ {{count | number}} / {{countTotal | number}} features +

- -
- {{count | number}} / {{countTotal | number}} features -
- - - - +
+
+ +
+ + + + + +
+ +
+
@@ -185,7 +189,7 @@ data-ng-class="{'text-primary': isFilterActive(field.name, field)}" > .btn:first-child { + border-radius: 0 0 4px 4px; + } + } + } + .fixed-table-container { + grid-area: main; + } + .fixed-table-pagination { + grid-area: footer; + } + } } .layername { display: inline-block; @@ -878,6 +920,11 @@ gn-features-tables, } .gn-md-view { + .tab-content { + background: white; + min-height: 5em; + padding: 0 0 15px 0; + } gn-features-tables { position: unset; .gn-features-table { @@ -891,6 +938,32 @@ gn-features-tables, [data-gn-wfs-filter-facets] .gn-facet-container { overflow: auto; max-height: 550px; + .list-group { + margin-bottom: 0; + .list-group-item { + border: 0; + padding: 8px 15px; + } + } + } +} +.gn-editor-sidebar { + .gn-related-resources { + p { + margin-top: 5px; + } + } + .gn-related-item { + h4 { + font-size: 14px; + } + } + .wfs-filter-group { + margin-top: 10px; + margin-bottom: 0; + .btn { + .btn-xs(); + } } }