diff --git a/modules/controlcenter/player.py b/modules/controlcenter/player.py index f65ac8a..908282d 100644 --- a/modules/controlcenter/player.py +++ b/modules/controlcenter/player.py @@ -173,10 +173,10 @@ class PlayerBoxStack(Box): child.destroy() except Exception as e: logger.warning(f"Failed to destroy player child: {e}") - + # Reset to no media state self.player_stack.children = [self.no_media_box] - + # Clear player buttons for button in self.player_buttons: try: @@ -184,17 +184,18 @@ class PlayerBoxStack(Box): except Exception: pass self.player_buttons.clear() - + # Reset stack position self.current_stack_pos = 0 - + # Clean up old cache files more aggressively cleanup_old_cache_files() - + # Force garbage collection import gc + gc.collect() - + logger.debug("PlayerBoxStack enhanced cleanup completed") except Exception as e: logger.warning(f"PlayerBoxStack enhanced cleanup failed: {e}") diff --git a/styles/player.css b/styles/player.css index b948207..b37d478 100644 --- a/styles/player.css +++ b/styles/player.css @@ -32,7 +32,7 @@ #outer-player-box-c { min-height: 55px; - min-width: 282px; + min-width: 245px; border-radius: 8px; /* margin: 0 6px; */ /* background-color: alpha(#000, 0.3); */