summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-03 21:46:18 -0400
committerDavid Gay <david@davidgay.org>2021-06-03 21:46:18 -0400
commit07ad9fc5c16f22adab89575fb41635953e6a466d (patch)
tree19957bd10199529a58ad1226635e72eb12f3971e
parent445fc96368ef2fa9f3a9be17cd0ae7d160de315b (diff)
Set low-ish `size` of bazaar number fields
-rw-r--r--CHANGELOG.md7
-rw-r--r--app/views/bazaar/index.html.erb8
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 @@
</div>
<div>
<%= 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 %>
</div>
<div>
<%= 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 %>
</div>
<div>
<%= f.label :buy_order, "Post as buy order" %>
@@ -85,7 +85,7 @@
<td class="table-cell-padded"><%= bo.price_each %></td>
<td class="table-cell-padded">
<%= 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 %>
</td>
@@ -117,7 +117,7 @@
<td class="table-cell-padded"><%= bo.price_each %></td>
<td class="table-cell-padded">
<%= 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 %>
</td>