[recipes] Fix recipe tile image sizing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix recipe tile image sizing
- Date: Sat, 7 Jan 2017 19:43:04 +0000 (UTC)
commit 877199098695916bfce6c1d28e528c332f0fef5a
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 7 14:36:50 2017 -0500
Fix recipe tile image sizing
We don't want the fallback image to peek through, so use 'cover'
for the sizing.
src/gr-recipe-tile.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-recipe-tile.c b/src/gr-recipe-tile.c
index 925bfb7..9ce3f96 100644
--- a/src/gr-recipe-tile.c
+++ b/src/gr-recipe-tile.c
@@ -76,8 +76,8 @@ add_recipe_css (GrRecipe *recipe,
g_string_append_printf (css, "box.recipe.%s {\n", id);
g_string_append_printf (css, " background: url('%s');\n"
- " background-size: 100%%;\n"
- " background-repeat: no-repeat;\n", ri->path);
+ " background-size: cover;\n"
+ " background-position: center;\n", ri->path);
g_string_append (css, "}\n\n");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]