From 7387e7b1c16f48b64769c93096fcde0e85cf2f1d Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Sat, 23 Mar 2024 15:45:39 +0100 Subject: [PATCH] Refine Unit table display --- app/assets/stylesheets/application.css | 2 +- app/views/units/_form.html.erb | 1 - app/views/units/_unit.html.erb | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 4ff46e3..cf5d921 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -53,7 +53,7 @@ body { "header header header" "nav nav nav" "leftside main rightside"; - grid-template-columns: 1fr 0fr 1fr; + grid-template-columns: 1fr auto 1fr; grid-template-rows: repeat(3, auto); font-family: system-ui; margin: 0.4em; diff --git a/app/views/units/_form.html.erb b/app/views/units/_form.html.erb index 31d3d29..249612c 100644 --- a/app/views/units/_form.html.erb +++ b/app/views/units/_form.html.erb @@ -24,5 +24,4 @@ name: :cancel, onclick: render_turbo_stream('form_close', {link_id: link_id}) %> <% end %> - <% end %> diff --git a/app/views/units/_unit.html.erb b/app/views/units/_unit.html.erb index 10c5b24..754a43b 100644 --- a/app/views/units/_unit.html.erb +++ b/app/views/units/_unit.html.erb @@ -4,7 +4,7 @@ onclick: 'this.blur();', data: {turbo_stream: true} %> <%= unit.name %> - <%= scientifize(unit.multiplier) if unit.base %> + <%= scientifize(unit.multiplier) %> <% if current_user.at_least(:active) %>