From 6428fa713f48c34ffaf4120f1100403376f3e351 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 19 May 2023 21:06:30 -0700 Subject: [PATCH] minor ui polish --- .../tailwind_components/_content_context_sidenav.html.erb | 2 +- .../tailwind_components/_content_fields_display.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/content/tailwind_components/_content_context_sidenav.html.erb b/app/views/content/tailwind_components/_content_context_sidenav.html.erb index 39ffd027..f32f361a 100644 --- a/app/views/content/tailwind_components/_content_context_sidenav.html.erb +++ b/app/views/content/tailwind_components/_content_context_sidenav.html.erb @@ -54,8 +54,8 @@ In the <%= content.universe.name %> universe + <%= image_tag content.universe.random_image_including_private, class: "#{Universe.color} w-full h-24 border border-purple-800 object-center object-cover rounded-md shadow hover:opacity-90" %> <% end %> - <%= image_tag content.universe.random_image_including_private, class: "#{Universe.color} w-full h-24 border border-purple-800 object-center object-cover rounded-md shadow hover:opacity-90" %> <% end %> diff --git a/app/views/content/tailwind_components/_content_fields_display.html.erb b/app/views/content/tailwind_components/_content_fields_display.html.erb index 0462ee6f..c9d9d61c 100644 --- a/app/views/content/tailwind_components/_content_fields_display.html.erb +++ b/app/views/content/tailwind_components/_content_fields_display.html.erb @@ -12,7 +12,7 @@ <%= category[:icon] %> <%= category[:label] %> - <% if category[:percent_complete].present? %> + <% if category[:percent_complete].present? && category[:percent_complete] > 10 %>