chore: Move unscoped styles to global stylesheet (#3422)
This commit is contained in:
parent
7b44bf5b78
commit
da163cc1f7
9 changed files with 240 additions and 262 deletions
|
@ -145,8 +145,9 @@ export default {
|
|||
|
||||
if (this.messageContentAttributes.submitted_values) {
|
||||
if (this.contentType === 'input_select') {
|
||||
const [selectionOption = {}] =
|
||||
this.messageContentAttributes.submitted_values;
|
||||
const [
|
||||
selectionOption = {},
|
||||
] = this.messageContentAttributes.submitted_values;
|
||||
return { content: selectionOption.title || selectionOption.value };
|
||||
}
|
||||
}
|
||||
|
@ -171,78 +172,3 @@ export default {
|
|||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style lang="scss">
|
||||
@import '~widget/assets/scss/variables.scss';
|
||||
|
||||
.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 {
|
||||
height: $space-medium;
|
||||
width: $space-medium;
|
||||
flex-shrink: 0;
|
||||
|
||||
.user-thumbnail-box {
|
||||
margin-top: -$space-large;
|
||||
}
|
||||
}
|
||||
|
||||
.message-wrap {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
margin-left: $space-small;
|
||||
max-width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
.agent-name {
|
||||
color: $color-body;
|
||||
font-size: $font-size-small;
|
||||
font-weight: $font-weight-medium;
|
||||
margin: $space-small 0;
|
||||
padding-left: $space-micro;
|
||||
}
|
||||
|
||||
.has-attachment {
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
|
||||
&.has-text {
|
||||
margin-top: $space-smaller;
|
||||
}
|
||||
}
|
||||
|
||||
.agent-message-wrap {
|
||||
+ .agent-message-wrap {
|
||||
margin-top: $space-micro;
|
||||
|
||||
.agent-message .chat-bubble {
|
||||
border-top-left-radius: $space-smaller;
|
||||
}
|
||||
}
|
||||
|
||||
+ .user-message-wrap {
|
||||
margin-top: $space-normal;
|
||||
}
|
||||
|
||||
&.has-response + .user-message-wrap {
|
||||
margin-top: $space-micro;
|
||||
.chat-bubble {
|
||||
border-top-right-radius: $space-smaller;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-response + .agent-message-wrap {
|
||||
margin-top: $space-normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue