mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #297 - Cast & Crew: Too much data displayed
This commit is contained in:
parent
8c258fd96c
commit
36aa7c2202
1 changed files with 9 additions and 1 deletions
|
@ -813,7 +813,15 @@
|
|||
role = "Guest star";
|
||||
}
|
||||
|
||||
html += '<p>' + (role || "") + '</p>';
|
||||
role = role || "";
|
||||
|
||||
var maxlength = 40;
|
||||
|
||||
if (role.length > maxlength) {
|
||||
role = role.substring(0, maxlength - 3) + '...';
|
||||
}
|
||||
|
||||
html += '<p>' + role + '</p>';
|
||||
|
||||
html += '</div>';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue