We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Title
To Reproduce Start playing something with a long title.
Screenshots
Proposed Fix
diff --git a/web/src/components/services/plex/PlexStats.tsx b/web/src/components/services/plex/PlexStats.tsx index 33316e9..5d20dce 100644 --- a/web/src/components/services/plex/PlexStats.tsx +++ b/web/src/components/services/plex/PlexStats.tsx @@ -284,16 +284,18 @@ export const PlexStats: React.FC<PlexStatsProps> = ({ instanceId }) => { {getMediaTypeIcon(session.type || "", session.Player?.state)} </span> <div className="flex items-center justify-between flex-1"> - <span className="text-xs font-medium text-gray-200 truncate" title={session.title}> - {session.type?.toLowerCase() === "movie" - ? session.grandparentTitle + <span className="text-xs font-medium text-gray-200 flex items-center min-w-0 flex-1"> + <span className="truncate max-w-[95%]" title={session.title}> + {session.type?.toLowerCase() === "movie" + ? session.grandparentTitle + ? `${session.grandparentTitle} - ${session.title}` + : session.title + : session.grandparentTitle ? `${session.grandparentTitle} - ${session.title}` - : session.title - : session.grandparentTitle - ? `${session.grandparentTitle} - ${session.title}` - : session.title ?? ""} + : session.title ?? ""} + </span> {session.type?.toLowerCase() === "clip" && ( - <span className="text-purple-400 ml-1">(Trailer)</span> + <span className="text-purple-400 ml-1 shrink-0">(Trailer)</span> )} </span> {isTranscoding(session) && (
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Title
To Reproduce
Start playing something with a long title.
Screenshots
Proposed Fix
The text was updated successfully, but these errors were encountered: