Skip to content

Commit

Permalink
MBS-13263: Add blank space before releases without cover art for alig…
Browse files Browse the repository at this point in the history
…nment
  • Loading branch information
JadedBlueEyes committed May 3, 2024
1 parent eafdcf0 commit 6666460
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions root/static/scripts/common/components/EntityLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,16 @@ $ReadOnlyArray<Expand2ReactOutput> | Expand2ReactOutput | null => {
{content}
</React.Fragment>
);
} else if (entity.entityType === 'release' &&
entity.cover_art_presence !== 'present') {
content = (
<React.Fragment key="caa">
<span
className="blank-icon"
/>
{content}
</React.Fragment>
);
}

if (entity.entityType === 'release_group' && entity.hasCoverArt) {
Expand Down
8 changes: 8 additions & 0 deletions root/static/styles/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,14 @@ span.caa-icon {
width: 18px;
}

span.blank-icon {
display: inline-block;
height: 18px;
padding-right: 5px;
vertical-align: bottom;
width: 18px;
}

span.video {
background-image: data-uri('../images/icons/video.png');
background-repeat: no-repeat;
Expand Down

0 comments on commit 6666460

Please sign in to comment.