Now that all uses of the images and thumbnails have been migrated
to flex grids, we can remove the margin and padding from the original
css classes and revert to using them.
max-width: 100px;
max-height: 100px;
border: 1px solid $grey;
max-width: 100px;
max-height: 100px;
border: 1px solid $grey;
- margin-bottom: $lineheight;
- float: left;
- 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;
border: 1px solid $grey;
}
img.user_thumbnail {
max-width: 50px;
max-height: 50px;
border: 1px solid $grey;
- margin-right: $lineheight;
-}
-
-img.user_thumbnail_no_margins {
- max-width: 50px;
- max-height: 50px;
- border: 1px solid $grey;
}
img.user_thumbnail_tiny {
}
img.user_thumbnail_tiny {
} %>
<%= tag.div :class => "contact-activity clearfix row", :data => { :user => user_data } do %>
<div class="col-auto">
} %>
<%= tag.div :class => "contact-activity clearfix row", :data => { :user => user_data } do %>
<div class="col-auto">
- <%= user_thumbnail contact, :class => "user_thumbnail_no_margins" %>
+ <%= user_thumbnail contact %>
</div>
<div class="col">
<p class='text-muted mb-0'>
</div>
<div class="col">
<p class='text-muted mb-0'>
<div class="user_popup row no-gutters mx-1">
<div class="col-auto mx-1">
<div class="user_popup row no-gutters mx-1">
<div class="col-auto mx-1">
- <%= user_thumbnail popup, :class => "user_thumbnail_no_margins" %>
+ <%= user_thumbnail popup %>
</div>
<div class="col mx-1">
<p><%= t(".#{type}") %></p>
</div>
<div class="col mx-1">
<p><%= t(".#{type}") %></p>
<div class="row diary-comment<%= " text-muted deleted" unless diary_comment.visible? %>">
<div class="col-auto">
<div class="row diary-comment<%= " text-muted deleted" unless diary_comment.visible? %>">
<div class="col-auto">
- <%= user_thumbnail diary_comment.user, :class => "user_thumbnail_no_margins" %>
+ <%= user_thumbnail diary_comment.user %>
</div>
<div class="col">
<p class="text-muted comment-heading" id="comment<%= diary_comment.id %>"><%= t(".comment_from_html", :link_user => (link_to diary_comment.user.display_name, user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}")) %>
</div>
<div class="col">
<p class="text-muted comment-heading" id="comment<%= diary_comment.id %>"><%= t(".comment_from_html", :link_user => (link_to diary_comment.user.display_name, user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}")) %>
<% else %>
<div class="row">
<div class="col-auto">
<% else %>
<div class="row">
<div class="col-auto">
- <%= user_thumbnail diary_entry.user, :class => "user_thumbnail_no_margins" %>
+ <%= user_thumbnail diary_entry.user %>
</div>
<div class="col">
<h2><%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %></h2>
</div>
<div class="col">
<h2><%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %></h2>
<div <% if @user %> id="userinformation"<% end %> class="row">
<% if @user %>
<div class="col-auto">
<div <% if @user %> id="userinformation"<% end %> class="row">
<% if @user %>
<div class="col-auto">
- <%= user_image @user, :class => "user_image_no_margins" %>
+ <%= user_image @user %>
<% content_for :heading do %>
<div id="userinformation" class="row">
<div class="col-sm-auto">
<% content_for :heading do %>
<div id="userinformation" class="row">
<div class="col-sm-auto">
- <%= user_image @entry.user, :class => "user_image_no_margins" %>
+ <%= user_image @entry.user %>
</div>
<div class="col">
<h2><%= link_to t(".user_title", :user => @entry.user.display_name), :action => :index %></h2>
</div>
<div class="col">
<h2><%= link_to t(".user_title", :user => @entry.user.display_name), :action => :index %></h2>
<% comments.each do |comment| %>
<div class="row">
<div class="col-auto">
<% comments.each do |comment| %>
<div class="row">
<div class="col-auto">
- <%= link_to user_thumbnail(comment.user, :class => "user_image_no_margins"), user_path(comment.user) %>
+ <%= link_to user_thumbnail(comment.user), user_path(comment.user) %>
</div>
<div class="col">
<p class="text-muted mb-0">
</div>
<div class="col">
<p class="text-muted mb-0">
<% reports.each do |report| %>
<div class="row">
<div class="col-auto">
<% reports.each do |report| %>
<div class="row">
<div class="col-auto">
- <%= link_to user_thumbnail(report.user, :class => "user_thumbnail_no_margins"), user_path(report.user) %>
+ <%= link_to user_thumbnail(report.user), user_path(report.user) %>
</div>
<div class="col">
<p class="text-muted mb-0">
</div>
<div class="col">
<p class="text-muted mb-0">
<% content_for :heading do %>
<div id="userinformation" class="row">
<div class="col-sm-auto">
<% content_for :heading do %>
<div id="userinformation" class="row">
<div class="col-sm-auto">
- <%= user_image @user, :class => "user_image_no_margins" %>
+ <%= user_image @user %>
</div>
<div class="col">
<h1><%= @user.display_name %> <%= role_icons(@user) %></h1>
</div>
<div class="col">
<h1><%= @user.display_name %> <%= role_icons(@user) %></h1>