Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

### Fix

- Ora i titoli molto lunghi e senza spazi nelle card vengono spezzati automaticamente con un trattino ("-") per evitare problemi di layout.
- Le card del blocco elenco di tipo "Bandi" mostrano ora la tipologia bando correttamente.

## Versione 12.7.3 (26/11/2025)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ const SquaresImageTemplate = ({
key={index}
data-element={id_lighthouse}
>
<span className="title fw-bold">{item?.title}</span>
<span className="title fw-bold">
{item?.title.length > 56
? `${item?.title.slice(0, 56)}…`
: item?.title}
</span>
</UniversalLink>
);
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@

.title-link {
text-decoration: none;
overflow-wrap: anywhere;
word-break: break-word;
hyphens: auto;
}

.title {
Expand Down
3 changes: 3 additions & 0 deletions src/theme/ItaliaTheme/Blocks/_completeBlockLinkstemplate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
font-size: 1rem !important;
font-weight: 700 !important;
line-height: 1.44444rem;
overflow-wrap: anywhere;
word-break: break-word;
hyphens: auto;
}

.card:after {
Expand Down
3 changes: 3 additions & 0 deletions src/theme/ItaliaTheme/Blocks/_gridGalleryTemplate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
margin: 0;
color: #fff;
text-align: left;
overflow-wrap: anywhere;
word-break: break-word;
hyphens: auto;
}

a {
Expand Down
3 changes: 3 additions & 0 deletions src/theme/ItaliaTheme/Blocks/_squaresImageTemplate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
max-height: 100%;
color: #fff;
font-size: 1.2rem;
overflow-wrap: anywhere;
word-break: break-word;
hyphens: auto;
}

&:before {
Expand Down
7 changes: 7 additions & 0 deletions src/theme/ItaliaTheme/Components/_card.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.public-ui {
.card {
.card-body {
.card-title {
a {
overflow-wrap: anywhere;
word-break: break-word;
hyphens: auto;
}
}
.card-text {
line-height: 1.5em;
}
Expand Down