diff options
author | David Gay <david@davidgay.org> | 2021-06-05 22:51:03 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-05 22:51:03 -0400 |
commit | 6bb5b9c6a654dd2cd55a1eeadfd7f889561578ac (patch) | |
tree | 2934953ab46d4810d32e49906ecd4e1b0688f904 /app | |
parent | bfa7bea2aff369fedcb2a8251850fcb24d395eb5 (diff) |
Adjust chat box so scrollbar lines up with main box scrollbar
Diffstat (limited to 'app')
-rw-r--r-- | app/views/application/_chat.html.erb | 2 | ||||
-rw-r--r-- | app/views/layouts/application.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/application/_chat.html.erb b/app/views/application/_chat.html.erb index 2606fab..b656ed7 100644 --- a/app/views/application/_chat.html.erb +++ b/app/views/application/_chat.html.erb @@ -1,6 +1,6 @@ <% if current_char %> <div data-controller="chat" class="flex flex-col h-full text-sm"> - <div data-chat-target="output" id="chat_output" class="overflow-auto overflow-x-hidden break-words flex-grow"> + <div data-chat-target="output" id="chat_output" class="game-container-box overflow-y-auto overflow-x-hidden break-words flex-grow"> </div> <div class="flex-none"> <%= form_with model: ChatMessage.new, html: { autocomplete: "off" }, local: false, diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index a7068cd..5ec0e31 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -25,7 +25,7 @@ <%= yield %> </div> <% if user_signed_in? %> - <div id="chat" class="game-container-box overflow-y-auto" + <div id="chat" class="overflow-y-auto" style="min-height: 10%; max-height: 20%" data-turbolinks-permanent> <%= render "chat" %> |