From 49f71122fc7e12365fdffbae0e758f60d6b51752 Mon Sep 17 00:00:00 2001 From: NamelessContributor <94963033+NamelessContributor@users.noreply.github.com> Date: Mon, 7 Feb 2022 10:47:13 +0100 Subject: [PATCH] Show file extension next to file size in post preview --- .../post_preview_component/post_preview_component.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/post_preview_component/post_preview_component.html.erb b/app/components/post_preview_component/post_preview_component.html.erb index 1333c8368..7c1bf7728 100644 --- a/app/components/post_preview_component/post_preview_component.html.erb +++ b/app/components/post_preview_component/post_preview_component.html.erb @@ -42,7 +42,7 @@ <% end %>

- <%= link_to number_to_human_size(file_size), post.file_url %> + <%= link_to "#{number_to_human_size(file_size)} .#{file_ext}", post.file_url %> (<%= post.image_width %>x<%= post.image_height %>)

@@ -50,7 +50,7 @@

<% elsif show_size -%>

- <%= link_to number_to_human_size(file_size), post.file_url %> + <%= link_to "#{number_to_human_size(file_size)} .#{file_ext}", post.file_url %> (<%= post.image_width %>x<%= post.image_height %>)

<% elsif recommended -%>