From ab70b30053c524735df75fc881b01accde1cd4f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Sun, 31 Jul 2022 04:33:39 +0200 Subject: [PATCH] Centre ultra-wide items vertically Overall, this looks better, even though we lose a baseline of sorts. --- fiv-browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fiv-browser.c b/fiv-browser.c index a11119a..db46bd3 100644 --- a/fiv-browser.c +++ b/fiv-browser.c @@ -257,7 +257,7 @@ item_extents(FivBrowser *self, const Item *item, const Row *row) int height = cairo_image_surface_get_height(item->entry->thumbnail); return (GdkRectangle) { .x = row->x_offset + item->x_offset, - .y = row->y_offset + self->item_height - height, + .y = row->y_offset + (self->item_height - height) / 2, .width = width, .height = height, };