Browse Source

Create padding around chat avatars and the colored container

pull/80/head
Gabe Kangas 5 years ago
parent
commit
cbbff2e5f5
  1. 10
      webroot/index.html
  2. 9
      webroot/styles/layout.css

10
webroot/index.html

@ -124,11 +124,11 @@ @@ -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>

9
webroot/styles/layout.css

@ -407,10 +407,15 @@ h2 { @@ -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;
}

Loading…
Cancel
Save