diff --git a/textual1/app.py b/textual1/app.py index 46a1594..51d6c09 100644 --- a/textual1/app.py +++ b/textual1/app.py @@ -370,8 +370,8 @@ class CoverArtPixels(Container): def render(self) -> RenderResult: if self.cover: width, height = self.size - width -= 4 - height -= 4 + + height += 100 if width > height: width = height @@ -389,8 +389,7 @@ class CoverArtPixels(Container): if CACHE and os.path.exists(cache_path): try: - image = Image.open(cache_path) - self.cover = image + self.cover = Image.open(cache_path) except Exception as e: logging.error(f"Failed to load cached cover art {cache_path}: {e}") @@ -529,7 +528,7 @@ class MainView(Screen): with Horizontal(): with Vertical(classes="info", id='info'): yield NowPlaying(id="now-playing") - yield ProgressBar() + # yield ProgressBar() with Vertical(classes="column"): yield Label("Queue") yield QueueTable(id="queue") diff --git a/textual1/main.tcss b/textual1/main.tcss index 2e47878..c2f55e0 100644 --- a/textual1/main.tcss +++ b/textual1/main.tcss @@ -1,6 +1,10 @@ .info { width: 30%; - padding-right: 2; + height: 100%; +} + +#nowplaying { + height: 100%; } #textinfo {