audioplayer
audioplayer copied to clipboard
[BUG] Selecting track list obscures albums below it
Describe the bug When I click an album to show the track list, it obscures the albums below it, preventing me from seeing or selecting them.
To Reproduce Steps to reproduce the behavior:
- Have an album list with at least two rows
- Select any row above the bottom one
- See the track list obscure the bottom ones
Expected behavior The below albums shift beneath the track list so that I can leave the track list open and select them.
Screenshots
Before:
After:
I can't see the "Sabor Latino" album below the track list.
Versions:
- Nextcloud: 24.0.12
- Audioplayer: 3.4.0
Hello, yes, the file list will overlay the albums below. Unfortunately my css knowledge is limited in this area. If someone can support here - happy to take suggestions
Looks like you might not need any fancy CSS trickery, just a couple simple CSS and programmatic changes:
- Change the
positionof.songcontainerfromabsolutetostatic - Add a
margin-bottomof10pxto.songcontainer - Remove the
padding-bottomfrom.coverrow - Inject the
div.songcontainerelement right after the rightmost album in the row with the selected album. - Set the absolute position of the
.open-arrowto be on the top of the new.songcontainerblock
1-3 are pure CSS changes, while 4 and 5 would require a code change to compute the rightmost album, put the song container element after that album, and compute the position that the open arrow should have.
Here's an example of what these changes would look like:
I did some research to see if this might be possible to do in pure CSS. Unfortunately, although we might be able to place the albums below the song container element, we can't know if we should do so or not because CSS lacks a way to check if they are covered using selectors alone, or if their position is below that of the song container. Check this out for a potential way to do this check in JS: https://stackoverflow.com/questions/49751396/determine-if-element-is-behind-another