Restore the grey border around the user image on the profile page

This approach keeps the look without adding in the margins (and floats)
which are inappropriate for the flex-based layout.
This commit is contained in:
Andy Allan 2021-09-15 14:11:05 +01:00
parent dfaea75c27
commit 31e247c1e2
2 changed files with 7 additions and 1 deletions

View file

@ -1445,6 +1445,12 @@ img.user_image {
margin-right: $lineheight;
}
img.user_image_no_margins {
max-width: 100px;
max-height: 100px;
border: 1px solid $grey;
}
img.user_thumbnail {
max-width: 50px;
max-height: 50px;

View file

@ -1,7 +1,7 @@
<% content_for :heading do %>
<div id="userinformation" class="row">
<div class="col-sm-auto">
<%= user_image @user, :class => "" %>
<%= user_image @user, :class => "user_image_no_margins" %>
</div>
<div class="col">
<h1><%= @user.display_name %> <%= role_icons(@user) %></h1>