Adjust modal size to 75% width and 65% height, call PlaybackStopped when cleaning up sessions

This commit is contained in:
2026-02-05 11:53:35 -05:00
parent 3b8d83b43e
commit b604d61039
2 changed files with 10 additions and 6 deletions

View File

@@ -230,13 +230,17 @@ public class JellyfinSessionManager : IDisposable
try
{
// Optionally notify Jellyfin that the session is ending
// (Jellyfin will auto-cleanup inactive sessions anyway)
// Report playback stopped to Jellyfin
var stopPayload = JsonSerializer.Serialize(new { });
await _proxyService.PostJsonAsync("Sessions/Playing/Stopped", stopPayload, session.Headers);
_logger.LogDebug("🛑 SESSION: Reported playback stopped for {DeviceId}", deviceId);
// Notify Jellyfin that the session is ending
await _proxyService.PostJsonAsync("Sessions/Logout", "{}", session.Headers);
}
catch (Exception ex)
{
_logger.LogWarning("⚠️ SESSION: Error removing session for {DeviceId}: {Message}", deviceId, ex.Message);
_logger.LogWarning("⚠️ SESSION: Error removing session for {DeviceId}: {Message}", deviceId, ex.Message);
}
}
}

View File

@@ -387,9 +387,9 @@
border: 1px solid var(--border);
border-radius: 12px;
padding: 24px;
max-width: 800px;
width: 90%;
max-height: 90vh;
max-width: 75%;
width: 75%;
max-height: 65vh;
overflow-y: auto;
}