Skip to content

Commit

Permalink
fix(ui): move Listing block date above title
Browse files Browse the repository at this point in the history
  • Loading branch information
RaneHyv committed Mar 1, 2024
1 parent 16fe8d8 commit c061ab8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions frontend/src/components/blocks/Listing/ListingTemplate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ const Card = ({ item, showDescription = true, hideDates = false }) => {
</figure>
</UniversalLink>
)}
<UniversalLink href={item['@id']} className="plone-item-card-link">
<h3 className="plone-item-title">
<span>{item.title}</span>
</h3>
</UniversalLink>
{!hideDates && (
<div className="event-label">
{item['@type'] === 'Event' && start && end && (
Expand All @@ -97,6 +92,11 @@ const Card = ({ item, showDescription = true, hideDates = false }) => {
)}
</div>
)}
<UniversalLink href={item['@id']} className="plone-item-card-link">
<h3 className="plone-item-title">
<span>{item.title}</span>
</h3>
</UniversalLink>
{!!showDescription && (
<p className="plone-item-description">{item.description}</p>
)}
Expand Down
2 changes: 1 addition & 1 deletion frontend/theme/extras/blocks/listing.less
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@
font-size: 20px;
line-height: 26px;
font-weight: 300;
margin-bottom: 10px;
margin-top: 10px;
}
}

0 comments on commit c061ab8

Please sign in to comment.