Skip to content

Commit

Permalink
neos#517 change badge size
Browse files Browse the repository at this point in the history
  • Loading branch information
schneider.n committed Sep 13, 2023
1 parent b988347 commit ef97afc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function ProviderListEntry({provider}: {provider: Provider}) {
<div key={provider.identifier} className="service-providers__grid-row">
<div className="service-providers__grid-cell service-providers__list-entry__badge">
{provider.badges && provider.badges.map((item) =>
<img src={item} alt="" class="service-providers__badge"/>
<img src={item} alt={item.match(/\/badge-(.*?)\.png/)[1] + ' Badge'} class={"service-providers__badge service-providers__badge--" + item.match(/\/badge-(.*?)\.png/)[1]}/>
)}
</div>
<div className="service-providers__grid-cell service-providers__list-entry__description">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@

.service-providers__badge {
max-width: 80px;

&.service-providers__badge--platinum {
max-width: 95px;
}
&.service-providers__badge--employer {
max-width: 105px;
}
}

.service-providers__grid-logo {
Expand Down

0 comments on commit ef97afc

Please sign in to comment.