Centre ultra-wide items vertically

Overall, this looks better, even though we lose a baseline of sorts.
This commit is contained in:
Přemysl Eric Janouch 2022-07-31 04:33:39 +02:00
parent ea75579b33
commit ab70b30053
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

View File

@ -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,
};