bad fix for bad album art scaling

This commit is contained in:
JISAUAY committed 2025-09-10 14:02:39 -05:00
1 parent da82bfa3b9
commit fd622d8a65
2 files changed
+9 -6

No files matched your search

+4 -5
View File
@@ -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")
+5 -1
View File
@@ -1,6 +1,10 @@
.info {
width: 30%;
padding-right: 2;
height: 100%;
}
#nowplaying {
height: 100%;
}
#textinfo {