added flex-box classes to columns

This commit is contained in:
2023-12-03 11:53:02 +01:00
parent e88c2fca68
commit db721ea1d8

View File

@@ -21,7 +21,7 @@
</div> </div>
<% end %> <% end %>
<div class="news-page flex"> <div class="news-page flex">
<div class="news-content"> <div class="news-content flex-box">
<h2><%= avatar(@news.author) %> <%=h @news.title %></h2> <h2><%= avatar(@news.author) %> <%=h @news.title %></h2>
<p> <p>
<% unless @news.summary.blank? %><em><%= @news.summary %></em><br /><% end %> <% unless @news.summary.blank? %><em><%= @news.summary %></em><br /><% end %>
@@ -33,7 +33,7 @@
<%= link_to_attachments @news %> <%= link_to_attachments @news %>
</div> </div>
<div id="comments" style="margin-bottom:16px;"> <div id="comments" style="margin-bottom:16px;" class="flex-box">
<h3 class="comments"><%= l(:label_comment_plural) %></h3> <h3 class="comments"><%= l(:label_comment_plural) %></h3>
<% if @news.commentable? && @comments.size >= 3 %> <% if @news.commentable? && @comments.size >= 3 %>
<p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments", :scroll => "comment_comments" %></p> <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments", :scroll => "comment_comments" %></p>