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:
parent
dfaea75c27
commit
31e247c1e2
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue