Skip to content

Commit

Permalink
fix: layout for LocationItem and VenuesSmall fixed for tablet (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni authored Jan 30, 2024
1 parent d51135e commit 656238a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
- Sistemato il layout e la visualizzazione della vista del CT Cartella Modulistica per gestire al meglio gli elementi
titolo, titolo del modulo e link al download in caso di testi lunghi, specialmente su mobile
- Colore di sfondo per il blocco icone impostato sul colore primario. Sistemato il contrasto tra descrizione e lo sfondo
- Layout delle card per i luoghi migliorato per dispositivi tablet
- Risolto un problema di visualizzazione e allineamento delle immagini per le card dei blocchi elenco che rappresentano Persone,
migliorata la visualizzazione e il layout su dispositivi tablet (intervallo dimensioni: 992px-1199px)

Expand Down
2 changes: 1 addition & 1 deletion src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Location = ({ location, show_icon }) => {
const image = Image({ item: location, loading: 'lazy', sizes: '80px' });
return (
location && (
<div className="card card-teaser shadow border-left-card mt-3 rounded">
<div className="card card-teaser shadow border-left-card mt-3 rounded location-item">
{show_icon && <Icon icon={'it-pin'} />}
<div className="card-body">
<div className="card-title h5">{location.title}</div>
Expand Down
5 changes: 5 additions & 0 deletions src/theme/ItaliaTheme/Components/_cardLocationItem.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@media (min-width: #{map-get($grid-breakpoints, lg)}) and (max-width: #{map-get($grid-breakpoints, xl)}) {
.card-wrapper.card-teaser-wrapper .card-teaser.location-item {
flex: 0 0 100%;
}
}
1 change: 1 addition & 0 deletions src/theme/site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
@import 'ItaliaTheme/Components/breadcrumbs';
@import 'ItaliaTheme/Components/card';
@import 'ItaliaTheme/Components/cardPersona';
@import 'ItaliaTheme/Components/cardLocationItem';
@import 'ItaliaTheme/Components/contactsCard';
@import 'ItaliaTheme/Components/navscroll';
@import 'ItaliaTheme/Components/customerSatisfaction';
Expand Down

0 comments on commit 656238a

Please sign in to comment.