Jump to content

Request: Grid view for TV Seasons and Episodes pages


Go to solution Solved by SoliFlix,

Recommended Posts

petehepple
Posted

Hi,

I'm fairly new to Emby and am looking to change the layout of the Seasons and Episodes page to a grid, eliminating the annoying single-line horizontal scrolling. I know another user has achieved this as they've shared screenshots of their setup (included here) - I've asked if they'd be willing to share the relevant CSS with me, but I haven't heard back from them so was wondering if anyone here would be willing to help me, please?

 

Season_grid.png

Episode_grid.png

  • Agree 1
SoliFlix
Posted (edited)

@peteheppletry this css code - to make the cards larger or smaller, change the values 200px (seasons) and 260px (episodes).

 

Spoiler

season.thumb.png.335ec9f89486061e90ba80dd3d2ac477.png

 

Spoiler

more_from.thumb.jpg.738f75adbbcdbc6bb15fbf85ff85951a.jpg

As usual, it only works in the web app/client. Other apps still show the normal horizontal scrolling rows.

Just copy it into Dahsboard / General / Custom CSS:

/* Grid instead of horizontal scroll: Seasons row (series page) and "More from Season" (episode page) */
/* To make the cards larger or smaller, change the values 200px (seasons) and 260px (episodes). */

.seriesItemsSection .emby-scroller,
.moreFromSeasonSection .emby-scroller {
    overflow: visible !important;
}

.seriesItemsSection .scrollSlider,
.moreFromSeasonSection .scrollSlider {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, calc(33.3% - 4px)), 1fr)) !important;
    white-space: normal !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    contain: layout style !important;
    transform: none !important;
}

/* Episode thumbnails are wider than season posters */
.moreFromSeasonSection .scrollSlider {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, calc(50% - 4px)), 1fr)) !important;
}

.seriesItemsSection .scrollSlider > .card,
.moreFromSeasonSection .scrollSlider > .card {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
}

.seriesItemsSection .emby-scrollbuttons,
.moreFromSeasonSection .emby-scrollbuttons {
    display: none !important;
}

 

Edited by SoliFlix
  • Like 1
petehepple
Posted

Great, thanks so much! That's got my seasons sorted nicely, but when I click on a season to view the episodes, they're still in a vertical list:

 

Spoiler

image.thumb.png.46e13fdb4a4aa100ec2b6e520091a128.png

I noticed your code makes the "More from Season" selection into a grid, but I can't figure out how to adapt the code to make it do the same for this main episode list too. It doesn't seem to be named as a section the same as seriesItemsSection and moreFromSeasonSection - or at least I can't see it in the code - so I'm not sure how to get that last part sorted.

Huge thanks for getting me started though, really appreciate it!

  • Solution
SoliFlix
Posted

This part was a bit trickier, but give this CSS a try. I haven’t tested every type of view, since my test server currently has no collections or Live TV. Just so you know, the code was created with the help of AI.

 

Spoiler

season_view.thumb.jpg.e749ebe03e7695f226abb5e034bcec50.jpg

 

/* Card size: 200px = seasons, 260px = "More from Season", 250px = season episode list */

/* Seasons row and "More from Season" as grid */
.seriesItemsSection .emby-scroller,
.moreFromSeasonSection .emby-scroller {
    overflow: visible !important;
}

.seriesItemsSection .scrollSlider,
.moreFromSeasonSection .scrollSlider {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, calc(33.3% - 4px)), 1fr)) !important;
    white-space: normal !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    contain: layout style !important;
    transform: none !important;
}

.moreFromSeasonSection .scrollSlider {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, calc(50% - 4px)), 1fr)) !important;
}

.seriesItemsSection .scrollSlider > .card,
.moreFromSeasonSection .scrollSlider > .card {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
}

.seriesItemsSection .emby-scrollbuttons,
.moreFromSeasonSection .emby-scrollbuttons {
    display: none !important;
}

/* Season page episode list as grid (album/playlist track lists not affected) */
.trackListSection .trackList:not(.generalItemsContainer) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, calc(50% - 0.8em)), 1fr)) !important;
    gap: 1.2em 0.8em;
    height: auto !important;
    contain: layout style !important;
    container-type: inline-size !important;
}

.trackListSection .trackList:not(.generalItemsContainer) > .listItem {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 0.4em;
    overflow: hidden;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItem-content {
    margin: 0 !important;
    height: 100%;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItem-innerwrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto 1fr;
    align-items: start !important;
    height: 100%;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemImageContainer {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    pointer-events: none !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemImage {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemBody {
    grid-column: 1;
    grid-row: 2 / span 3;
    min-width: 0 !important;
    padding: 0.6em 0.3em 0.8em 0.8em !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItem-overview {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
    margin-top: 0.4em;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItem-bottomoverview {
    display: none !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemButton {
    margin: 0.2em 0.3em 0 0 !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listViewFavoriteButton {
    grid-column: 2;
    grid-row: 2;
}

.trackListSection .trackList:not(.generalItemsContainer) .listViewPlayedButton {
    grid-column: 2;
    grid-row: 3;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemContextMenuButton {
    grid-column: 2;
    grid-row: 4;
}

/* Play button like on the cards: image click opens details, only the button plays */
.trackListSection .trackList:not(.generalItemsContainer) .listItemOverlayButton-imagehover {
    background: rgba(51, 51, 51, 0.5) !important;
    pointer-events: none !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemOverlayButtonIcon {
    font-size: 2.8em !important;
    width: 1.2em !important;
    height: 1.2em !important;
    background: hsla(var(--button-background-hue), var(--button-background-saturation), var(--button-background-lightness), var(--button-background-alpha)) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    pointer-events: auto !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemOverlayButtonIcon:hover {
    transform: none !important;
    background: var(--theme-accent-text-color) !important;
}

 

  • Like 2
petehepple
Posted

That's it! Thank you so much for this, it's fantastic, this makes me so happy :)

  • Thanks 1
Posted
On 11/5/2026 at 12:13 AM, SoliFlix said:

This part was a bit trickier, but give this CSS a try. I haven’t tested every type of view, since my test server currently has no collections or Live TV. Just so you know, the code was created with the help of AI.

 

  Reveal hidden contents

season_view.thumb.jpg.e749ebe03e7695f226abb5e034bcec50.jpg

 

/* Card size: 200px = seasons, 260px = "More from Season", 250px = season episode list */

/* Seasons row and "More from Season" as grid */
.seriesItemsSection .emby-scroller,
.moreFromSeasonSection .emby-scroller {
    overflow: visible !important;
}

.seriesItemsSection .scrollSlider,
.moreFromSeasonSection .scrollSlider {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, calc(33.3% - 4px)), 1fr)) !important;
    white-space: normal !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    contain: layout style !important;
    transform: none !important;
}

.moreFromSeasonSection .scrollSlider {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, calc(50% - 4px)), 1fr)) !important;
}

.seriesItemsSection .scrollSlider > .card,
.moreFromSeasonSection .scrollSlider > .card {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
}

.seriesItemsSection .emby-scrollbuttons,
.moreFromSeasonSection .emby-scrollbuttons {
    display: none !important;
}

/* Season page episode list as grid (album/playlist track lists not affected) */
.trackListSection .trackList:not(.generalItemsContainer) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, calc(50% - 0.8em)), 1fr)) !important;
    gap: 1.2em 0.8em;
    height: auto !important;
    contain: layout style !important;
    container-type: inline-size !important;
}

.trackListSection .trackList:not(.generalItemsContainer) > .listItem {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 0.4em;
    overflow: hidden;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItem-content {
    margin: 0 !important;
    height: 100%;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItem-innerwrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto 1fr;
    align-items: start !important;
    height: 100%;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemImageContainer {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    pointer-events: none !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemImage {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemBody {
    grid-column: 1;
    grid-row: 2 / span 3;
    min-width: 0 !important;
    padding: 0.6em 0.3em 0.8em 0.8em !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItem-overview {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
    margin-top: 0.4em;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItem-bottomoverview {
    display: none !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemButton {
    margin: 0.2em 0.3em 0 0 !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listViewFavoriteButton {
    grid-column: 2;
    grid-row: 2;
}

.trackListSection .trackList:not(.generalItemsContainer) .listViewPlayedButton {
    grid-column: 2;
    grid-row: 3;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemContextMenuButton {
    grid-column: 2;
    grid-row: 4;
}

/* Play button like on the cards: image click opens details, only the button plays */
.trackListSection .trackList:not(.generalItemsContainer) .listItemOverlayButton-imagehover {
    background: rgba(51, 51, 51, 0.5) !important;
    pointer-events: none !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemOverlayButtonIcon {
    font-size: 2.8em !important;
    width: 1.2em !important;
    height: 1.2em !important;
    background: hsla(var(--button-background-hue), var(--button-background-saturation), var(--button-background-lightness), var(--button-background-alpha)) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    pointer-events: auto !important;
}

.trackListSection .trackList:not(.generalItemsContainer) .listItemOverlayButtonIcon:hover {
    transform: none !important;
    background: var(--theme-accent-text-color) !important;
}

 

Great thanks! It's look amazing. But i have three questtions. 1. Is it possible to increase owerview lines from 3 to 5-6? When i make webkitt-line 1 or 2 it works, when 5 or 6 it doesn't. 2  This grid view only works when season folders are displayed; if all episodes from all seasons are shown together, the season selector stops working. Is there a way to fix this? 3. Is it possible to display the items in the "Coming Soon" and "Favorites" sections as a grid, rather than using the current scrolling layout?

SoliFlix
Posted (edited)

@HUNCO Thanks! Points 1 and 3 are possible. Point 2 only works with a compromise (see below). I’ve attached two versions of the CSS and a small HTML page to build your own version.

1. Overview lines
Emby also limits the height of the overview (max-height). That’s why only 1–2 lines worked for you. This is now overridden, so just change -webkit-line-clamp: 3 to 5, 6 or whatever you like (none = full overview).

Spoiler

6_lines.thumb.jpg.fbde4d42758df5b05f88be2eb3aff756.jpg

2. “Show all episodes of all seasons together”
In this mode the season selector jumps to a season by scrolling the row horizontally. That can’t work inside a grid (it would need JavaScript, and Custom CSS doesn’t allow that). So there are two versions now:

  • emby-grid.txt (Version 1): In this mode the row stays horizontal like Emby’s default, and the season selector works. With season folders everything is a grid.
  • emby-grid-all-episodes.txt (Version 2): In this mode all episodes are shown as a grid too. The season selector is hidden, because it can’t jump inside a grid, and the “Episodes” title is shown instead. The number of overview lines can be set here as well.

3. Upcoming and Favourites
Both versions also show “Upcoming” and “Favourites” in the TV library, and “Favourites” on the home screen, as grids. Posters (shows, movies) and episode thumbnails get their own sizes.

Spoiler

upcoming_css.thumb.jpg.617c85982ba4cbff372a35b7858c38ca.jpg

Spoiler

favorites_css.thumb.jpg.0ba221208a634e49680acbc915f90ebf.jpg

Builder page (emby-grid-builder.html)
Open it in any browser, it runs locally. You can choose:

  • Grid view or Emby standard for “Show all episodes of all seasons together”
  • Card sizes for seasons/posters, episodes and the season page tiles
  • Overview lines for the season page and the all-episodes grid separately
  • Which sections should be a grid
  • Whether a click on the episode image opens the details or plays the episode

There’s a simplified preview for different screen widths. The finished CSS appears below with Copy/Download buttons and a Reset button. With the default settings it creates exactly the two attached versions.

Spoiler

html_view.thumb.jpg.e7a2b0596a029f6295a69cecaa004744.jpg

 

Notes

  • Copy the CSS into Dashboard → Settings → Custom CSS. If nothing changes, reload the page with Ctrl+F5, because the browser caches the custom CSS file.
  • As usual it only works in the web app. Other apps still show the normal layout.
  • Tested on Emby 4.11 in a current Chrome-based browser. It needs a browser that supports :has() (Chrome/Edge 105+, Firefox 121+, Safari 15.4+).
  • “Upcoming” and “Favourites” are detected by the tab position. If you hide or reorder tabs, that part may not match.
  • Not all of the combinations you can create with the builder have been tested by me.
  • The code was created with the help of AI.

emby-grid.txt

emby-grid-all-episodes.txt

 

emby-grid-builder.html

Edited by SoliFlix
  • Like 2
Posted

@SoliFlixThank you so much for your help — everything looks absolutely perfect now! I have one more question — it’s more of a rhetorical one, really directed at the developers, but I’ll ask anyway. Currently, the season selection is a drop-down menu. That’s fine when a series has only 2–3 seasons, but it becomes quite inconvenient once there are more than 10. Is it possible to replace the drop-down menu with separate tabs for each season (as shown in the screenshot), where each season is displayed as a grid on its own tab? Something similar to the layout used in TV mode.

scr5.thumb.jpg.46ad17e3bf0cb6828a829ed41ef522e5.jpg

Posted

I’ve already solved the problem myself, so the question is no longer relevant. Thanks for the help.

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...