Skip to content

Commit

Permalink
Merge pull request #96 from dexterousdex/chat-style-tweaks
Browse files Browse the repository at this point in the history
chat styling tweaks.
  • Loading branch information
dimbleby committed Aug 5, 2023
2 parents 4d453db + 3566120 commit eb5cff9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions hunt/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ body {
align-items: center;
}

.chat-container {
max-width: 100%;
}

.chat-messages {
max-height: 300px;
overflow-y: scroll;
text-align: left;
overflow-wrap: anywhere;
}

.heading {
padding: 0 5vw;
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions hunt/templates/room.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>

<div class="container">
<div class="container chat-container">
<div class="columns is-multiline">
<div class="column is-full">
<section class="hero is-primary">
Expand All @@ -12,7 +12,7 @@

<div class="column is-full">
<div class="box">
<div id="chat-messages" style="max-height: 300px; overflow-y: scroll;">
<div id="chat-messages" class="chat-messages">
{% for message in messages %}
<b>{{ message.name }}</b>: {{ message.content }}<br>
{% endfor %}
Expand Down

0 comments on commit eb5cff9

Please sign in to comment.