From 490cd8a506a99bfad5745768201d21dadccc5043 Mon Sep 17 00:00:00 2001 From: Michel Gabriel Date: Tue, 17 Sep 2024 13:18:41 +0200 Subject: [PATCH] Fix for the print styles, the popup style now not only works in the emulated styles but also in the print preview and print. This commit also contains a fix for the SVG 'named circle' that was displayed too big --- .../resources/catalog/style/gn_metadata.less | 7 ++++++- .../views/default/less/gn_print_default.less | 21 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/web-ui/src/main/resources/catalog/style/gn_metadata.less b/web-ui/src/main/resources/catalog/style/gn_metadata.less index b00bc7b1cb1..12e628e7eb5 100644 --- a/web-ui/src/main/resources/catalog/style/gn_metadata.less +++ b/web-ui/src/main/resources/catalog/style/gn_metadata.less @@ -634,11 +634,16 @@ ul.container-list { padding: 5px; } @media print { + svg { + max-width: 75px; + margin: 15px; + } [gn-popover-content] { .make-md-column-offset(3); padding: 0 @gn-spacing-lg; display: block !important; - label, a { + label, + a { display: block; margin-bottom: @gn-spacing; } diff --git a/web-ui/src/main/resources/catalog/views/default/less/gn_print_default.less b/web-ui/src/main/resources/catalog/views/default/less/gn_print_default.less index 52b5c123b9f..57c17e3a2b9 100644 --- a/web-ui/src/main/resources/catalog/views/default/less/gn_print_default.less +++ b/web-ui/src/main/resources/catalog/views/default/less/gn_print_default.less @@ -1,4 +1,5 @@ @import "../../../lib/style/bootstrap/less/variables.less"; +@import "gn_view.less"; // special print classes .gn-new-page { @@ -105,6 +106,26 @@ a[href]:after { svg { max-width: 100px; } + [gn-popover-content] { + .make-md-column-offset(3); + padding: 0 @gn-spacing-lg; + display: block !important; + label, + a { + display: block; + margin-bottom: @gn-spacing; + } + [data-label="focusOnFrom"] { + display: none; + } + .fa { + display: none; + } + [data-ng-href] { + margin-bottom: @gn-spacing; + display: inline-block; + } + } } .gn-md-side-crs { a {