forked from fixin.me/fixin.me
Refine Unit table display
This commit is contained in:
parent
f2088ea39f
commit
7387e7b1c1
@ -53,7 +53,7 @@ body {
|
|||||||
"header header header"
|
"header header header"
|
||||||
"nav nav nav"
|
"nav nav nav"
|
||||||
"leftside main rightside";
|
"leftside main rightside";
|
||||||
grid-template-columns: 1fr 0fr 1fr;
|
grid-template-columns: 1fr auto 1fr;
|
||||||
grid-template-rows: repeat(3, auto);
|
grid-template-rows: repeat(3, auto);
|
||||||
font-family: system-ui;
|
font-family: system-ui;
|
||||||
margin: 0.4em;
|
margin: 0.4em;
|
||||||
|
@ -24,5 +24,4 @@
|
|||||||
name: :cancel, onclick: render_turbo_stream('form_close', {link_id: link_id}) %>
|
name: :cancel, onclick: render_turbo_stream('form_close', {link_id: link_id}) %>
|
||||||
</td>
|
</td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!-- TODO: display error_messages_for unit -->
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
onclick: 'this.blur();', data: {turbo_stream: true} %>
|
onclick: 'this.blur();', data: {turbo_stream: true} %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= unit.name %></td>
|
<td><%= unit.name %></td>
|
||||||
<td class="number"><%= scientifize(unit.multiplier) if unit.base %></td>
|
<td class="number"><%= scientifize(unit.multiplier) %></td>
|
||||||
|
|
||||||
<% if current_user.at_least(:active) %>
|
<% if current_user.at_least(:active) %>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user