Skip to content

Commit 08cc8b8

Browse files
Oowoosh0jeremypw
andauthored
Fix gap below cover art (#799)
Co-authored-by: Jeremy Wootten <[email protected]>
1 parent 98587d8 commit 08cc8b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Widgets/TrackRow.vala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public class Music.TrackRow : Gtk.ListBoxRow {
2828
album_image.image.height_request = 32;
2929
album_image.image.width_request = 32;
3030

31+
var aspect_frame = new Gtk.AspectFrame (0.5f, 0.5f, 1, false) {
32+
child = album_image
33+
};
34+
3135
var title_label = new Gtk.Label (audio_object.title) {
3236
ellipsize = Pango.EllipsizeMode.MIDDLE,
3337
hexpand = true,
@@ -49,7 +53,7 @@ public class Music.TrackRow : Gtk.ListBoxRow {
4953
margin_end = 12,
5054
margin_bottom = 6
5155
};
52-
grid.attach (album_image, 0, 0, 1, 2);
56+
grid.attach (aspect_frame, 0, 0, 1, 2);
5357
grid.attach (title_label, 1, 0);
5458
grid.attach (artist_label, 1, 1);
5559
grid.attach (play_icon, 2, 0, 1, 2);

0 commit comments

Comments
 (0)