summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-22 18:10:19 -0400
committerDavid Gay <david@davidgay.org>2021-05-22 18:10:19 -0400
commit44facc2e567eb3c045ce082428f42276e45b0202 (patch)
tree0b302bfd60a6faae698a63e68e3e1a5bdb9e16c2 /app/views
parent38f3a39221869483e3468e9f4d8cab5450a70f89 (diff)
Monsters and basic combat
Diffstat (limited to 'app/views')
-rw-r--r--app/views/activities/_results.html.erb2
-rw-r--r--app/views/activities/show.html.erb2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/views/activities/_results.html.erb b/app/views/activities/_results.html.erb
index 0fef8fb..5fde590 100644
--- a/app/views/activities/_results.html.erb
+++ b/app/views/activities/_results.html.erb
@@ -11,6 +11,8 @@
<p>You constructed <%= result[:hearth_amenity].name %>.</p>
<% when "activity" %>
<p>You realized how to <%= result[:activity].name %>!</p>
+ <% when "message" %>
+ <p><%= result[:body] %></p>
<% when "error" %>
<p><%= result[:message] %></p>
<% end %>
diff --git a/app/views/activities/show.html.erb b/app/views/activities/show.html.erb
index 84c19a4..c9c6d25 100644
--- a/app/views/activities/show.html.erb
+++ b/app/views/activities/show.html.erb
@@ -2,7 +2,7 @@
<p><%= @activity.description %></p>
<div class="min-w-full my-2 px-1 overflow-auto text-sm border-2 border-gray-800 rounded"
- style="height: 75px" id="result_output">
+ style="height: 30rem;" id="result_output">
</div>
<div id="result_controls">