Skip to content

Commit 5ed2e7f

Browse files
committed
fix(discogs_importer): tracklist text overlap when long credits are present
Add CSS to prevent track credits from overlapping with subsequent track titles when there are many credits per track. Sets height to auto for expanded track credit elements to override Discogs' dynamic height calculation.
1 parent ede226a commit 5ed2e7f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

discogs_importer.user.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,14 @@ function insertMBSection(release, current_page_key) {
469469
$('form.musicbrainz_import_search').css({ float: 'right' });
470470
$('form.musicbrainz_import > button').css({ width: '100%', 'box-sizing': 'border-box' });
471471

472+
// Fix tracklist with long credits text overlap issue by setting track height to auto
473+
const tracklistCss = `
474+
[class*="trackCredits"][class*="expanded"] {
475+
height: auto !important;
476+
}
477+
`;
478+
document.head.insertAdjacentHTML('beforeend', `<style>${tracklistCss}</style>`);
479+
472480
mbUI.slideDown();
473481
}
474482

0 commit comments

Comments
 (0)