Skip to content

Commit

Permalink
Merge branch 'main' into bug_51182_visualizzazione_card_piccole_grid_…
Browse files Browse the repository at this point in the history
…gallery
  • Loading branch information
pnicolli authored Jan 29, 2024
2 parents 34fc120 + 9644292 commit 918973d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
### Fix

- Sistemato il layout del template Galliery a griglia per il blocco elenco, le immagini più piccole ora sono correttamente contenute dentro il loro riquadro e il titolo non fuoriesce più
- Risolto un problema di visualizzazione degli argomenti indicati come altri argomenti nel blocco Argomenti quando il loro numero è esiguo

## Versione 11.3.2 (19/01/2023)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ const messages = defineMessages({
const BottomBody = ({ data, intl }) => {
return data?.arguments?.length > 0 ? (
<Container className="text-center">
<div className="row d-lg-inline-flex pt-5">
<div className="col-lg-3">
<div className="row d-lg-inline-flex align-items-center pt-5">
<div className="col-lg-auto">
<h6 className="text-uppercase text-center mt-1">
{intl?.formatMessage(messages.otherArguments)}
</h6>
</div>
<div className="col-lg-9 text-start">
<div className="col-lg-auto">
{data?.arguments?.map((argument, index) => (
<Chip
color="primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const GridGalleryTemplate = ({
className: '',
});
let scale = null;
if (index % 7 === 0 || index % 7 === 6) {
if (index % 7 === 0 || index % 7 === 6 || index % 7 === 3) {
scale = 'great';
}
if (index % 7 === 1 || index % 7 === 5) {
Expand All @@ -69,7 +69,6 @@ const GridGalleryTemplate = ({
if (index % 7 === 2 || index % 7 === 4) {
scale = 'large';
}

if (scale && item?.image?.scales?.[scale]) {
image = (
<img
Expand Down

0 comments on commit 918973d

Please sign in to comment.