65
loading...
This website collects cookies to deliver better user experience
.header
class should be edited as given below..header {
display: flex;
height: 6rem;
background-color: #e7ecee;
flex-shrink: 0;
border-bottom: 1px solid #C5CFD6;
background-color: #FFF;
padding: 0px;
margin: 0px;
}
.image
and .info
. These need to have the following changes..image {
width: 45px;
text-align: center;
margin-right: 0.5rem;
flex-shrink: 0;
position: absolute;
margin-left: 37%;
margin-top: 0px;
}
.info {
flex-grow: 1;
flex-basis: 0;
min-width: 0;
position: absolute;
margin-left: 34%;
margin-top: 15%;
}
<Avatar t:if="{{ sender.isMe == false and sender.id != previousSenderId }}"
photoUrl="{{ sender.photoUrl }}"
/>
timestamp
, floatTimestamp
, and showStatus
properties from the <MessageBody>
element.<MessageBody>
element to get the timestamp.<div t:if="{{ sender.isMe == false }}"
class = "timestamp {{ sender.isMe | then : 'by-me' | else: 'by-other' }}"> {{ timestamp | date: "%l:%M %p"}} <StatusTicks/>
</div>
<div t:if="{{ sender.isMe == true }}"
class = "timestamp {{ sender.isMe | then: 'by-me' | else: 'by-other' }}">
{{ timestamp | date: "%l:%M %p"}} <StatusTicks/>
</div>
margin-bottom
for the .message-row
class from 0.5rem
to 0.1rem
. We now need to alter the .message
and .by-me .message
classes. Make the following changes for the two..message {
white-space: normal;
overflow: hidden;
border-radius: 1rem 1rem 1rem 0px;
border-width: 1px;
border-style: solid;
word-wrap: break-word;
position: relative;
display: inline-block;
max-width: calc(100% - 12rem - 0.25rem - 0.25rem);
border-color: #E7ECEE;
background-color: #EAEEF0;
color: #000;
}
.by-me .message {
border-color: #1E60E1;
background-color: #1E60E1;
color: #fff;
/* Space between avatar and the message */
margin-right: 0.25rem;
}
.by-me.previous-same
class. For styling the timestamps, add the following two classes..timestamp.by-me{
font-size: 10px;
padding-left: 3.2rem;
margin-left: 67%;
}
.timestamp.by-other{
font-size: 10px;
padding-left: 3.2rem;
}
<div class="tag">@alicejohn</div>
.tag{
font-size: 12px;
color: #5F6165;
}
.header {
display: flex;
height: 4rem;
background-color: #FFF;
flex-shrink: 0;
border-bottom: 1px solid #E6E6E6;
}
.conversation-list-header
class change the padding to 15px 12px and the background-color to #FFF. Now, scroll down to the .toggle-label
class and replace the contents with this..toggle-label {
float: left;
padding-top: 7px;
font-style: italic;
}
borderRadius
to 0 and the borderColor
to #DDDDDD
.width
to 100%
, maxWidth
and minWidth
both to 320px
, borderRadius
to 0, borderWidth
to 1px
and borderColor
to #DDDDDD
.width
to calc(70% - 1rem)
, maxWidth
to 480px
and set the marginLeft
as 0px
.backgroundColor
of the highlights to #EFF3F4
and color
to #000
and your inbox should look nearly identical to the Twitter DM.