26
loading...
This website collects cookies to deliver better user experience
<div t:if="{{ sender.id != previousSenderId and conversation.others.length > 0 }}"
style="font-size: 13px; color: #000">
{{ sender.name }} <span class = "time-sent"> • {{ timestamp | date: "%H:%m %p"}}</span>
showStatus
property from line 73. Once these changes are completed, we will now scroll down to the style classes. First up, we have the message-row class. We need to change the margin-bottom
to 0.1rem
and margin-top
to 0.1rem
. This will reduce the gap between each message.flex-direction: row-reverse
property from the class message-row by-me
. After that, edit the message class so that it looks like this:.message {
white-space: normal;
overflow: hidden;
word-wrap: break-word;
position: relative;
display: inline-block;
max-width: calc(100% - 4rem - 0.2rem - 0.2rem);
color: #000;
}
#000
(black). If you noticed before, we had added a new class to the timestamp next to the user’s name. This new class is called time-sent and we will add the following styles to it..time-sent{
font-size: 10px;
color: #8F8F8F;
font-weight: normal;
}
backgroundColor #F9FAFB
borderTopWidth 2px
borderTopColor #E5E5E5
borderRadius 10px
borderColor #D9D9D9
backgroundColor #FFFFFF
color #232529
#0866C8
and you should be all set.