Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added source title to single card #385

Merged
merged 4 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

- Aggiornata nuova icona di Twitter

### Fix

- Nei template dei feed RSS ora viene mostrata la sorgente se presente.

## Versione 7.22.2 (11/10/2023)

### Fix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ const CardWithImageRssTemplate = ({
<CardTitle className="big-heading" tag="h6">
{item.title}
</CardTitle>
{item?.source?.length > 0 && (
<div className="source-title">
<span className="source">{item.source}</span>
</div>
)}
</CardBody>
<CardReadMore
iconName="it-arrow-right"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ const CardWithoutImageRssTemplate = ({
<CardTitle className="big-heading" tag="h5">
{item.title}
</CardTitle>
{item?.source?.length > 0 && (
<div className="source-title">
<span className="source">{item.source}</span>
</div>
)}
<CardText tag="p" className="text-serif">
{item.contentSnippet}
</CardText>
Expand Down
17 changes: 17 additions & 0 deletions theme/ItaliaTheme/Blocks/_rssBlock.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
.rssBlock {
.card {
.card-body {
.source-title {
font-size: $card-category-size;
text-transform: uppercase;
color: $card-p-color;
margin-bottom: $card-category-m-bottom;
.source {
font-weight: bold;
letter-spacing: $card-category-l-spacing;
}
}
}
}
}

#text-body {
.rssBlock {
.row > * {
Expand Down