Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Create padding around chat avatars and the colored container

Gabe Kangas6faa6eaeeae4
diff --git a/webroot/index.html b/webroot/index.html
index 8121ae735f..19dc844006 100644
--- a/webroot/index.html
+++ b/webroot/index.html
@@ -124,11 +124,11 @@
<div id="messages-container">
<div v-for="message in messages" v-cloak>
<div class="message flex">
- <img
- v-bind:src="message.image"
- class="message-avatar rounded-full bg-black bg-opacity-50"
- v-bind:style="{ backgroundColor: message.userColor() }"
- />
+ <div class="message-avatar rounded-full flex items-center justify-center" v-bind:style="{ backgroundColor: message.userColor() }">
+ <img
+ v-bind:src="message.image"
+ />
+ </div>
<div class="message-content">
<p class="message-author text-white font-bold">{{ message.author }}</p>
<p class="message-text text-gray-400 font-thin " v-html="message.formatText()"></p>
diff --git a/webroot/styles/layout.css b/webroot/styles/layout.css
index 58a8df08a8..123b075290 100644
--- a/webroot/styles/layout.css
+++ b/webroot/styles/layout.css
@@ -407,10 +407,15 @@ h2 {
align-items: flex-start;
}
.message-avatar {
- height: 2.5em;
- width: 2.5em;
margin-right: .75em;
}
+.message-avatar img {
+ max-width: unset;
+ height: 25.em;
+ width: 2.5em;
+ padding: 6px;
+}
+
.message-content {
font-size: .85em;
}