diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-07-31 04:33:39 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-07-31 04:35:04 +0200 |
commit | ab70b30053c524735df75fc881b01accde1cd4f7 (patch) | |
tree | 62f7a015461467fe461711f8f3f7bdaf287d0a4f | |
parent | ea75579b33498cde54c34485aee28a69956ccaaf (diff) | |
download | fiv-ab70b30053c524735df75fc881b01accde1cd4f7.tar.gz fiv-ab70b30053c524735df75fc881b01accde1cd4f7.tar.xz fiv-ab70b30053c524735df75fc881b01accde1cd4f7.zip |
Centre ultra-wide items vertically
Overall, this looks better, even though we lose a baseline of sorts.
-rw-r--r-- | fiv-browser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, }; |