Jump to content

Change the number of Songs rows?


Go to solution Solved by Happy2Play,

Recommended Posts

Posted

Hi all, is it possible, in CSS only, to change the number of Songs rows on the Artist detail pages?

image.thumb.png.70378deaec4465caac7c1eb46038145e.png

Currently it's default set to 3 rows, but I would like to change it to potentially 6 rows, if possible, to fit in with some other changes I'm working on. Cheers!

  • Solution
Happy2Play
Posted
14 hours ago, user24 said:

Hi all, is it possible, in CSS only, to change the number of Songs rows on the Artist detail pages?

image.thumb.png.70378deaec4465caac7c1eb46038145e.png

Currently it's default set to 3 rows, but I would like to change it to potentially 6 rows, if possible, to fit in with some other changes I'm working on. Cheers!

Looks like you will have to play with the numbers but something like this.

div.view-item-item div.artistSongsItemsContainer {
    height: 350px;
}
@supports ((display: -webkit-flex) or (display:flex)) {
    @supports (color:var(--fake-var)) {
        .itemsContainer-sideFooters {
            max-height: 30em
        }
    }
}

image.thumb.png.2199af960bb38dc6e4fff902218dcca1.png

Only downside is the extra spacing for artist with not many tracks.

image.png.8c2e69ab8903dab20804648ce11b11e9.png

  • Like 1
Posted

Thanks. That works well. I might go with 8 rows, as part of my larger project, not sure just yet...

image.thumb.png.e4ef110b9f59d9ad94c99340585b5ef8.png

Yeah, the downside is noticeable, but it only affects a handful of my Album Artists, so I can live with it!

I also have a (unrelated) follow-up question, so will post as a separate topic...

  • 1 month later...
Multiverse
Posted

And how can I hide them completely?

Happy2Play
Posted
1 hour ago, Multiverse said:

And how can I hide them completely?

Something like this

div.view-item-item .artistSongsSection {display: none;}

 

  • Like 1
  • 6 months later...
Posted

This has been working fine for me to display 8 rows up until now, but with the update to 4.9.1.90 today, the rows have reverted back to 3 only.

Here is the current code I am using:

/* CHANGE THE NUMBER OF SONGS ROWS FROM 3 to 8 */
div.view-item-item div.artistSongsItemsContainer {
    height: 520px;
}
    @supports ((display: -webkit-flex) or (display:flex)) {
    @supports (color:var(--fake-var)) {
        .itemsContainer-sideFooters {
            max-height: 35em
        }
    }
}

I still get the required expanded height of the section as per example below:

image.thumb.png.2d0051c916f36034d54eec8172647feb.png

Is there an easy way to get the 8 rows back?  Thanks in advance!

Happy2Play
Posted (edited)

Luke made different element more !Important so you have to change code or add !important to height of custom css.

image.thumb.png.3dff6fb2091bec025f111f2fa37301e4.png

Edited by Happy2Play
  • Thanks 1
Posted

Adding !important has the expanded rows working again in my current setup. Thank you!

image.thumb.png.1321c82b3d8d224dc6c1083bb64edf7c.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...