[recipes] Fix some sizing problems with images in cooking mode preview



commit 89149170970c05d825382754ecea3d7b1dcd8abf
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 14 06:31:48 2017 -0500

    Fix some sizing problems with images in cooking mode preview
    
    We were forcing the image frame to be bigger than the image,
    using css min-size and widget alignment, which is really not
    needed here.

 src/gr-cooking-view.ui |    2 ++
 src/recipes.css        |    2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-cooking-view.ui b/src/gr-cooking-view.ui
index b3a1dc0..c00b84d 100644
--- a/src/gr-cooking-view.ui
+++ b/src/gr-cooking-view.ui
@@ -23,6 +23,8 @@
                 <property name="visible">1</property>
                 <property name="icon-name">camera-photo-symbolic</property>
                 <property name="pixel-size">96</property>
+                <property name="halign">center</property>
+                <property name="valign">center</property>
                 <style>
                   <class name="cooking-image"/>
                 </style>
diff --git a/src/recipes.css b/src/recipes.css
index e5521c5..617a2d5 100644
--- a/src/recipes.css
+++ b/src/recipes.css
@@ -351,8 +351,6 @@ button.osd {
 .cooking-image {
         color: #ddd;
         background-color: transparent;
-        min-width: 400px;
-        min-height: 400px;
         border: 1px solid white;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]