]> git.openstreetmap.org Git - rails.git/commitdiff
Pass classes to override the default thumbnail_tiny style, rather than having another...
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 17 Nov 2021 17:39:42 +0000 (17:39 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 24 Nov 2021 12:24:16 +0000 (12:24 +0000)
app/assets/stylesheets/common.scss
app/views/layouts/_header.html.erb

index b0016a3fbf4c883b65e4eb0b82d556f8d8352ee0..c957df78544aff50925d5715f17caf497423234b 100644 (file)
@@ -226,11 +226,6 @@ nav.secondary {
     }
   }
 
-  img.user_thumbnail_tiny {
-    border: 0;
-    border-radius: 3px;
-  }
-
   #inboxanchor {
     display: inline-block;
     height: 25px;
index 192b0761431faf62a8f25a002f6e293c8f72a806..0171752ff4a4e23966852ff99484028a21bde906 100644 (file)
@@ -81,7 +81,7 @@
     <% if current_user && current_user.id %>
       <div class='d-inline-flex dropdown user-menu logged-in clearfix'>
         <a class='dropdown-toggle btn btn-outline-secondary pl-2 py-1 flex-grow-1' data-toggle='dropdown' href="#">
-          <%= user_thumbnail_tiny(current_user, :width => 25, :height => 25) %>
+          <%= user_thumbnail_tiny(current_user, :width => 25, :height => 25, :class => "user_thumbnail_tiny rounded-sm") %>
           <%= render :partial => "layouts/inbox" %>
           <span class="user-button">
             <span class='username'>