[gnome-software: 7/10] gs-details-page: Ensure large context tile lozenges are square




commit e939b7d3abd72c9abb7caefaa65288bf12da2d19
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Aug 12 17:05:55 2021 +0100

    gs-details-page: Ensure large context tile lozenges are square
    
    If a context tile lozenge contains an icon which is taller than it is
    wide, and has the `large` class applied, its width is only constrained
    by the icon and so it will end up narrower than it is tall.
    
    Fix that by setting a min-width for large lozenges such that they’re
    always at least 60x60px.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gtk-style.css | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gtk-style.css b/src/gtk-style.css
index 32e4bcfa1..76e61b9a8 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -751,6 +751,7 @@ app-context-bar .context-tile:last-child {
 .context-tile-lozenge.large {
        font-size: 24px;
        padding: 15px 18px;
+       min-width: 24px;
        min-height: 30px;
 }
 


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