From 60d6d94b0a83c48fe2fbc4838c3179a8c38226db Mon Sep 17 00:00:00 2001 From: Erica Z Date: Tue, 3 Dec 2024 16:17:16 +0100 Subject: [PATCH] fix album cover rounding closes #17 --- resources/album_carousel_album.blp | 12 +++++++----- resources/style.css | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/resources/album_carousel_album.blp b/resources/album_carousel_album.blp index a0835f9..a61ecc6 100644 --- a/resources/album_carousel_album.blp +++ b/resources/album_carousel_album.blp @@ -11,11 +11,13 @@ template $AudreyUiAlbumCarouselAlbum: Adw.Bin { margin-bottom: 6; spacing: 6; - Image { - paintable: bind template.cover_art; - pixel-size: 160; - halign: center; - hexpand: false; + AspectFrame { + child: Picture { + paintable: bind template.cover_art; + height-request: 160; + width-request: 160; + content-fit: scale_down; + }; } Box { diff --git a/resources/style.css b/resources/style.css index eb2b156..09e367d 100644 --- a/resources/style.css +++ b/resources/style.css @@ -91,7 +91,7 @@ gridview.albums child image { padding-right: 10px; } -.album-carousel listview row image { +.album-carousel listview row picture { border-radius: 3px; box-shadow: oklch(0 0 0 / 0.25) 0px 0px 3px; }