diff options
author | António Fernandes <antoniof@gnome.org> | 2023-04-05 12:26:47 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2023-04-05 12:30:45 +0100 |
commit | baab8d3ad5168800b90e06b98070d250714d1b0e (patch) | |
tree | f84f797797e9c1b32c3bc50c67d80ebec0d222e5 | |
parent | b0e28bc19c065b4bc1d6fdea922ae2c09115b0e6 (diff) | |
download | nautilus-baab8d3ad5168800b90e06b98070d250714d1b0e.tar.gz |
grid-cell, name-cell: Have thumbnail cover allocation
Otherwise, due to some modular arithmetic artifacts, there is an
unsightly 1px transparent line between the picture and its css border.
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2779
-rw-r--r-- | src/resources/ui/nautilus-grid-cell.ui | 1 | ||||
-rw-r--r-- | src/resources/ui/nautilus-name-cell.ui | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/ui/nautilus-grid-cell.ui b/src/resources/ui/nautilus-grid-cell.ui index 1a9204050..881e6b0c4 100644 --- a/src/resources/ui/nautilus-grid-cell.ui +++ b/src/resources/ui/nautilus-grid-cell.ui @@ -28,6 +28,7 @@ <property name="valign">center</property> <property name="vexpand">True</property> <property name="can-shrink">False</property> + <property name="content-fit">cover</property> </object> </property> </object> diff --git a/src/resources/ui/nautilus-name-cell.ui b/src/resources/ui/nautilus-name-cell.ui index 96094b79c..ddfe398d4 100644 --- a/src/resources/ui/nautilus-name-cell.ui +++ b/src/resources/ui/nautilus-name-cell.ui @@ -37,6 +37,7 @@ <property name="halign">center</property> <property name="valign">center</property> <property name="can-shrink">False</property> + <property name="content-fit">cover</property> </object> </child> </object> |