diff --git a/Plugin/unraid/pages/monitor.php b/Plugin/unraid/pages/monitor.php
index 1436cb9..7e5d29e 100644
--- a/Plugin/unraid/pages/monitor.php
+++ b/Plugin/unraid/pages/monitor.php
@@ -1326,19 +1326,28 @@ function vvPollMonitor() {
let sessHtml = '';
if (activeSessions.length) {
- let rowsHtml = '';
- activeSessions.forEach(s => {
+ function vvTcRow(s) {
const meth = s.method.replace('Transcode', 'TC').replace('Direct ', '');
- rowsHtml += `
+ return `
${vvSrvIcon(s.server_type, s.server)}
${s.title}
${typeLabel(s.type)}
${meth}
`;
- });
+ }
+ const shown = activeSessions.slice(0, 4);
+ const mid = Math.ceil(shown.length / 2);
+ const colA = shown.slice(0, mid).map(vvTcRow).join('');
+ const colB = shown.slice(mid).map(vvTcRow).join('');
+ const colBDiv = colB ? `
${colB}
` : '';
+ const overflow = activeSessions.length > 4
+ ? `
+${activeSessions.length - 4} more
`
+ : '';
sessHtml = `
Active transcodes ${activeSessions.length}
-
${rowsHtml}
+
${overflow}
`;
}