[gnome-software: 2/4] category-tile: Allocate more space to the text




commit 1c782510cc03c428550d2d70d6774d01a7617d9b
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Aug 10 13:38:21 2021 +0200

    category-tile: Allocate more space to the text
    
    This allocates more space to the text, allowing it to go closer to the
    tile's borders, which is needed for it to work in verbose languages on
    smal form factors.

 src/gs-category-tile.ui | 1 +
 src/gtk-style.css       | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-category-tile.ui b/src/gs-category-tile.ui
index ae92a7f97..4583ccbd4 100644
--- a/src/gs-category-tile.ui
+++ b/src/gs-category-tile.ui
@@ -28,6 +28,7 @@
           <object class="GtkLabel" id="label">
             <property name="visible">True</property>
             <property name="xalign">0</property>
+            <property name="ellipsize">end</property>
           </object>
         </child>
       </object>
diff --git a/src/gtk-style.css b/src/gtk-style.css
index b34d43bc6..c93ec8826 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -179,7 +179,9 @@ summary-tile {
 }
 
 .category-tile {
-       padding: 20px 40px;
+       /* We have to remove the padding: 160px - 2*10px = 140px */
+       min-width: 140px;
+       padding: 20px 10px;
        border-radius: 8px;
        -gtk-outline-radius: 7px;
        font-size: larger;


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