From 6fe7ecd21fc7f5fe96eba06b9b0457038a27a91c Mon Sep 17 00:00:00 2001 From: Martina Bustacchini Date: Fri, 13 Oct 2023 11:26:57 +0200 Subject: [PATCH] fix: fix a bunch of styling and visual issues in CartellaModulisticaView on desktop and mobile --- RELEASE.md | 6 +++ .../View/CartellaModulisticaView/DocRow.jsx | 6 ++- .../Views/_cartellaModulistica.scss | 52 +++++++++++++++---- 3 files changed, 52 insertions(+), 12 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index 4ec34801f..3ec4d19c0 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -30,6 +30,12 @@ - ... --> +## Versione 8.x.x (xx/xx/2023) + +### Fix + +- Sistemate inconsistenze nella visualizzazione di alcuni tipi di elementi della lista degli allegati in Cartella Modulistica + ## Versione 8.7.8 (12/10/2023) ### Fix diff --git a/src/components/ItaliaTheme/View/CartellaModulisticaView/DocRow.jsx b/src/components/ItaliaTheme/View/CartellaModulisticaView/DocRow.jsx index 9c8f6d028..575d2ce60 100644 --- a/src/components/ItaliaTheme/View/CartellaModulisticaView/DocRow.jsx +++ b/src/components/ItaliaTheme/View/CartellaModulisticaView/DocRow.jsx @@ -81,7 +81,11 @@ const DocRow = ({ doc }) => { {/*Single file*/} {doc.items?.length === 1 && ( -
+
{titleWrapper} {doc.items?.length === 1 && ( diff --git a/src/theme/ItaliaTheme/Views/_cartellaModulistica.scss b/src/theme/ItaliaTheme/Views/_cartellaModulistica.scss index ae8ab6d11..2856195b3 100644 --- a/src/theme/ItaliaTheme/Views/_cartellaModulistica.scss +++ b/src/theme/ItaliaTheme/Views/_cartellaModulistica.scss @@ -46,13 +46,10 @@ $docs-section-margin: 3em; align-items: center; justify-content: space-between; padding: 0.4em 0; - + gap: 4rem; .title-wrap { flex: 1; - &.single-row { - max-width: 70%; - } .title { font-size: 1.2em; font-weight: 500; @@ -88,13 +85,25 @@ $docs-section-margin: 3em; a.modulistica-link { display: flex; - width: 100%; + position: relative; align-items: center; justify-content: space-between; - - svg { - width: 2em; - font-size: 1.2em; + height: fit-content; + flex-shrink: 0; + + svg.icon.fa-icon { + width: 1.6rem; + height: 1.6rem; + font-size: 1.3rem; + order: 2; + margin-right: 1.15rem; + margin-left: 0.25rem; + } + svg.external-link { + order: 1; + right: 0; + top: -2px; + position: absolute; } } } @@ -169,16 +178,37 @@ $docs-section-margin: 3em; .doc-row { .doc { flex-wrap: wrap; - align-items: unset; + align-items: center; justify-content: unset; + gap: 2rem; + &.link-to-doc { + align-items: unset; + gap: 0.5rem; + .title-wrap, + a.modulistica-link { + flex-basis: 100%; + svg.icon.fa-icon { + margin-left: 0; + margin-right: 1.25rem; + } + } + } .title-wrap { &.single-row { max-width: none; } } + + &.modulo { + justify-content: space-between; + .title, + .downloads { + flex-basis: unset; + } + } .title, .downloads { - flex: 1 1 100%; + flex: 1 1 unset; justify-content: flex-end; a {