2021-12-21 06:32:43 +00:00
|
|
|
.file-uploads .attachment-button+label {
|
2021-11-19 10:39:20 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.conversation-wrap {
|
|
|
|
.agent-message {
|
|
|
|
align-items: flex-end;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
margin: 0 0 $space-micro $space-small;
|
|
|
|
max-width: 88%;
|
|
|
|
|
|
|
|
.avatar-wrap {
|
|
|
|
flex-shrink: 0;
|
|
|
|
height: $space-medium;
|
|
|
|
width: $space-medium;
|
|
|
|
|
|
|
|
.user-thumbnail-box {
|
|
|
|
margin-top: -$space-large;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-wrap {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-left: $space-small;
|
|
|
|
max-width: 90%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-typing .messages-wrap div:last-child {
|
|
|
|
.agent-message {
|
|
|
|
.agent-name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-thumbnail-box {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.agent-name {
|
|
|
|
font-size: $font-size-small;
|
|
|
|
font-weight: $font-weight-medium;
|
|
|
|
margin: $space-small 0;
|
|
|
|
padding-left: $space-micro;
|
|
|
|
}
|
|
|
|
|
|
|
|
.has-attachment {
|
|
|
|
overflow: hidden;
|
2022-03-24 07:14:34 +00:00
|
|
|
|
|
|
|
:not([audio]) {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-11-19 10:39:20 +00:00
|
|
|
|
|
|
|
&.has-text {
|
|
|
|
margin-top: $space-smaller;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.agent-message-wrap {
|
2021-12-21 06:32:43 +00:00
|
|
|
+.agent-message-wrap {
|
2021-11-19 10:39:20 +00:00
|
|
|
margin-top: $space-micro;
|
|
|
|
|
|
|
|
.agent-message .chat-bubble {
|
|
|
|
border-top-left-radius: $space-smaller;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-21 06:32:43 +00:00
|
|
|
+.user-message-wrap {
|
2021-11-19 10:39:20 +00:00
|
|
|
margin-top: $space-normal;
|
|
|
|
}
|
|
|
|
|
2021-12-21 06:32:43 +00:00
|
|
|
&.has-response+.user-message-wrap {
|
2021-11-19 10:39:20 +00:00
|
|
|
margin-top: $space-micro;
|
|
|
|
|
|
|
|
.chat-bubble {
|
|
|
|
border-top-right-radius: $space-smaller;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-21 06:32:43 +00:00
|
|
|
&.has-response+.agent-message-wrap {
|
2021-11-19 10:39:20 +00:00
|
|
|
margin-top: $space-normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-message {
|
|
|
|
align-items: flex-end;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-end;
|
|
|
|
margin: 0 $space-smaller $space-micro auto;
|
|
|
|
max-width: 85%;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
.message-wrap {
|
|
|
|
margin-right: $space-small;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2021-12-21 06:32:43 +00:00
|
|
|
.in-progress,
|
|
|
|
.is-failed {
|
2021-11-19 10:39:20 +00:00
|
|
|
opacity: 0.6;
|
|
|
|
}
|
2021-12-21 06:32:43 +00:00
|
|
|
|
|
|
|
.is-failed {
|
|
|
|
align-items: flex-end;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
|
|
|
.chat-bubble.user {
|
|
|
|
background: $color-error !important;
|
|
|
|
// TODO: Remove the important
|
|
|
|
}
|
|
|
|
}
|
2021-11-19 10:39:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.user.has-attachment {
|
|
|
|
.icon-wrap {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.download {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-message-wrap {
|
2021-12-21 06:32:43 +00:00
|
|
|
+.user-message-wrap {
|
2021-11-19 10:39:20 +00:00
|
|
|
margin-top: $space-micro;
|
|
|
|
|
|
|
|
.user-message .chat-bubble {
|
|
|
|
border-top-right-radius: $space-smaller;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-21 06:32:43 +00:00
|
|
|
+.agent-message-wrap {
|
2021-11-19 10:39:20 +00:00
|
|
|
margin-top: $space-normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
p:not(:last-child) {
|
|
|
|
margin-bottom: $space-normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.unread-messages {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
margin-top: 0;
|
|
|
|
overflow-y: auto;
|
|
|
|
padding-bottom: $space-small;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.chat-bubble-wrap {
|
|
|
|
margin-bottom: $space-smaller;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-top: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-bubble {
|
|
|
|
border: 1px solid $color-border-dark;
|
|
|
|
}
|
|
|
|
|
2021-12-21 06:32:43 +00:00
|
|
|
+.chat-bubble-wrap {
|
2021-11-19 10:39:20 +00:00
|
|
|
.chat-bubble {
|
|
|
|
border-top-left-radius: $space-smaller;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child .chat-bubble {
|
|
|
|
border-bottom-left-radius: $space-two;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-widget-right .unread-wrap {
|
|
|
|
overflow: hidden;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
.chat-bubble-wrap {
|
|
|
|
.chat-bubble {
|
|
|
|
border-bottom-right-radius: $space-smaller;
|
|
|
|
border-radius: $space-two;
|
|
|
|
}
|
|
|
|
|
2021-12-21 06:32:43 +00:00
|
|
|
+.chat-bubble-wrap {
|
2021-11-19 10:39:20 +00:00
|
|
|
.chat-bubble {
|
|
|
|
border-top-right-radius: $space-smaller;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child .chat-bubble {
|
|
|
|
border-bottom-right-radius: $space-two;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.close-unread-wrap {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.chat-bubble {
|
|
|
|
@include light-shadow;
|
|
|
|
border-radius: $space-two;
|
|
|
|
color: $color-white;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: $font-size-default;
|
|
|
|
line-height: 1.5;
|
|
|
|
padding: $space-slab $space-normal;
|
|
|
|
text-align: left;
|
|
|
|
word-break: break-word;
|
|
|
|
|
2022-03-24 07:14:34 +00:00
|
|
|
:not([audio]) {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2021-12-21 06:32:43 +00:00
|
|
|
>a {
|
2021-11-19 10:39:20 +00:00
|
|
|
color: $color-primary;
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.user {
|
|
|
|
border-bottom-right-radius: $space-smaller;
|
|
|
|
|
2021-12-21 06:32:43 +00:00
|
|
|
>a {
|
2021-11-19 10:39:20 +00:00
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.agent {
|
|
|
|
border-bottom-left-radius: $space-smaller;
|
|
|
|
color: $color-body;
|
|
|
|
|
|
|
|
.link {
|
|
|
|
color: $color-woot;
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|