From 72227bc0e8badc1f4194cb4c8df0bbbac12ad58a Mon Sep 17 00:00:00 2001 From: ishikawa999 <14245262+ishikawa999@users.noreply.github.com> Date: Fri, 22 May 2026 10:28:23 +0900 Subject: [PATCH 3/3] Improve news list layout --- app/assets/stylesheets/application.css | 18 ++++++++++++++++++ app/views/news/index.html.erb | 2 ++ 2 files changed, 20 insertions(+) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 4466d1a02..316abb48a 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -2465,6 +2465,24 @@ div.news .reaction { font-size: 0.9em; margin-inline-start: 10px; } +#news-list article.news-article { + padding-block-start: 10px; +} +#news-list article.news-article header p.author, +#news-list article.news-article .wiki { + margin-inline-start: 2rem; +} +#news-list article.news-article header h3 { + margin-block-end: 2px; +} +#news-list article.news-article header p.author { + margin-block-start: 2px; + margin-block-end: 2px; + color: var(--oc-gray-6); +} +#news-list article.news-article .wiki > p:first-child { + margin-block-start: 2px; +} /* Custom JQuery styles */ .ui-autocomplete, .ui-menu { diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb index 10930ea60..addb5d8e0 100644 --- a/app/views/news/index.html.erb +++ b/app/views/news/index.html.erb @@ -18,6 +18,7 @@

<%=l(:label_news_plural)%>

+
<% if @newss.empty? %>

<%= l(:label_no_data) %>

<% else %> @@ -35,6 +36,7 @@ <% end %> <% end %> +
<%= pagination_links_full @news_pages %> <% other_formats_links do |f| %> -- 2.50.1 (Apple Git-155)