Skip to content

Commit

Permalink
fix: dates layout in CardWithImage template and 4 columns layout (#532)
Browse files Browse the repository at this point in the history
* fix: dates layout in CardWithImage template and 4 columns layout

* Update RELEASE.md

---------

Co-authored-by: Piero Nicolli <[email protected]>
  • Loading branch information
deodorhunter and pnicolli authored Feb 14, 2024
1 parent 92d734e commit af9dfc7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

### Fix

- Risolto un problema riguardante la visualizzazione delle date nelle card che rappresentano uun CT Evento nei vari listati nel caso in cui l'evento si sviluppi su anni diversi
- Risolto un problema riguardante la visualizzazione delle date nelle card che rappresentano un CT Evento nei vari listati nel caso in cui l'evento si sviluppi su anni diversi

- Nel blocco elenco, sono stati sistemati i filtri per percorso quando si clicca sul bottone configurato.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ const CardWithImageTemplate = (props) => {
)}
<CardBody className="px-4">
{(icon || category || date) && (
<CardCategory iconName={icon} date={date}>
<CardCategory
iconName={icon}
date={date}
className={cx('category-top categoryicon-top', {
'wrap-dates-four-columns': set_four_columns,
})}
>
<ListingCategory category={category} item={item} />
</CardCategory>
)}
Expand Down
10 changes: 10 additions & 0 deletions src/theme/ItaliaTheme/Blocks/_cardWithImageAndInEvidence.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@
font-weight: 400;
letter-spacing: 1.1px;
}
&.wrap-dates-four-columns {
flex-wrap: wrap;
.data {
margin-top: 0.5rem;
}

::before {
display: none;
}
}
}

.card-title {
Expand Down

0 comments on commit af9dfc7

Please sign in to comment.