From 2265721cb2acac7dea955581f41b8fbcb039be25 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 26 Jan 2020 17:58:16 -0600 Subject: [PATCH] forum: move inline css to stylesheet. --- app/javascript/src/styles/specific/forum.scss | 12 ++++++++++-- app/views/forum_topics/_listing.html.erb | 13 ++----------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/app/javascript/src/styles/specific/forum.scss b/app/javascript/src/styles/specific/forum.scss index 686ad6e65..84573abd6 100644 --- a/app/javascript/src/styles/specific/forum.scss +++ b/app/javascript/src/styles/specific/forum.scss @@ -55,8 +55,16 @@ div#c-forum-topics { font-weight: bold; } - #a-index table tr td:last-child { - white-space: nowrap; + #a-index { + .updated-at-column { + white-space: nowrap; + } + + .updated-by-column, .updated-at-column { + @media screen and (max-width: 660px) { + display: none; + } + } } } diff --git a/app/views/forum_topics/_listing.html.erb b/app/views/forum_topics/_listing.html.erb index c7a932eb4..8314e1435 100644 --- a/app/views/forum_topics/_listing.html.erb +++ b/app/views/forum_topics/_listing.html.erb @@ -25,19 +25,10 @@ <% t.column "Creator" do |topic| %> <%= link_to_user topic.creator %> <% end %> - <% t.column "Updated by", th: { class: "updater" }, td: { class: "updater" } do |topic| %> + <% t.column "Updated by" do |topic| %> <%= link_to_user topic.updater %> <% end %> - <% t.column "Updated at", th: { class: "updated-at" }, td: { class: "updated-at" } do |topic| %> + <% t.column "Updated at" do |topic| %> <%= compact_time topic.updated_at %> <% end %> <% end %> - -<% content_for(:html_header) do %> - -<% end %>