From 07ad9fc5c16f22adab89575fb41635953e6a466d Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 3 Jun 2021 21:46:18 -0400 Subject: Set low-ish `size` of bazaar number fields --- CHANGELOG.md | 7 ++++--- app/views/bazaar/index.html.erb | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 320de2f..1da26fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,11 +22,12 @@ amenities, etc that are added unless they are special in some way. - Remaining duration of conditions and accumulated rested time are now expressed in "human" terms instead of seconds. - Blank line is now added to beginning of combat results instead of end, since it means more of the most-recent combat results can be visible when the box has a scroll bar. -- Reduced text size of Character view headings. +- Character view: Reduced text size of headings. +- Bazaar view: Reduced size (width) of number fields. ### Removed -- The "Look" view. -- Rest section from the Character view. +- The Look view +- Character view: Rest section ### Fixed - No blank line was being added to combat activity results if the activity was stopped due to being too wounded. diff --git a/app/views/bazaar/index.html.erb b/app/views/bazaar/index.html.erb index 63d708f..2ee433c 100644 --- a/app/views/bazaar/index.html.erb +++ b/app/views/bazaar/index.html.erb @@ -19,11 +19,11 @@
<%= f.label :quantity, "Quantity" %> - <%= f.number_field :quantity, required: true, min: 1, max: 2_000_000_000 %> + <%= f.number_field :quantity, required: true, size: 12, min: 1, max: 2_000_000_000 %>
<%= f.label :price_each, "Price Each" %> - <%= f.number_field :price_each, required: true, min: 1, max: 2_000_000_000 %> + <%= f.number_field :price_each, required: true, size: 12, min: 1, max: 2_000_000_000 %>
<%= f.label :buy_order, "Post as buy order" %> @@ -85,7 +85,7 @@ <%= bo.price_each %> <%= form_with url: bazzar_accept_offer_path(id: bo.id) do |f| %> - <%= f.number_field :quantity, value: 1, min: 1, max: 2_000_000_000, required: true %> + <%= f.number_field :quantity, value: 1, size: 8, min: 1, max: 2_000_000_000, required: true %> <%= f.submit "Buy" %> <% end %> @@ -117,7 +117,7 @@ <%= bo.price_each %> <%= form_with url: bazzar_accept_offer_path(id: bo.id) do |f| %> - <%= f.number_field :quantity, value: 1, min: 1, max: 2_000_000_000, required: true %> + <%= f.number_field :quantity, value: 1, size: 8, min: 1, max: 2_000_000_000, required: true %> <%= f.submit "Sell" %> <% end %> -- cgit v1.2.3