AutorÃa | Ultima modificación | Ver Log |
.message {
box-shadow: $light-shadow;
display: inline-flex;
flex-direction: column;
gap: .5rem;
margin-bottom: 0.5rem;
max-width: 70%;
min-width: 4rem;
padding: 0.5rem;
position: relative;
&>p {
color: $chat-color;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-word;
}
&>img {
max-width: 250px;
max-height: 250px;
object-fit: contain;
}
&:first-child {
margin-top: .5rem;
}
&.sent {
background-color: $chat-send;
border-radius: 10px 0 10px 10px;
}
&.received {
background-color: $chat-received;
border-radius: 0 10px 10px 10px;
}
&_time {
color: $subtitle-color;
font-size: 0.8rem;
}
.emojione {
width: 1rem;
height: 1rem;
}
}
.download_btn {
display: inline-flex;
gap: 0.5rem;
padding: 2px 10px;
margin-left: 0.2rem;
color: black;
}
.user_name {
font-size: 0.7rem;
color: $font-color;
align-self: flex-start;
margin-bottom: 0.2rem;
}
.display-reactions {
align-items: center;
background: $bg-color;
border-radius: 10px;
box-shadow: $shadow;
color: $icons-color;
display: flex;
gap: 0.5rem;
padding: 1rem;
button {
color: $icons-color;
}
}
.message_container {
display: flex;
gap: .5rem;
width: 100%;
align-items: center;
&.sent {
flex-direction: row-reverse;
}
&.received {
flex-direction: row;
}
}