Skip to content

Commit

Permalink
clear system setups for existing components
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Jun 14, 2023
1 parent 59bee3e commit 754e1d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export default {
*/
showAuthor: {
type: Boolean,
default: true,
default: false,
},
/**
* Specifies if the message is temporary in order to display the spinner instead
Expand Down
18 changes: 3 additions & 15 deletions src/components/MessagesList/MessagesGroup/MessagesGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
role="heading"
aria-level="3">{{ dateSeparator }}</span>
</div>
<div class="wrapper"
:class="{'wrapper--system': isSystemMessage}">
<div v-if="!isSystemMessage" class="messages__avatar">
<div class="wrapper">
<div class="messages__avatar">
<AuthorAvatar :author-type="actorType"
:author-id="actorId"
:display-name="actorDisplayName" />
Expand All @@ -44,7 +43,7 @@
:actor-type="actorType"
:actor-id="actorId"
:actor-display-name="actorDisplayName"
:show-author="!isSystemMessage"
show-author
:is-temporary="message.timestamp === 0" />
</ul>
</div>
Expand Down Expand Up @@ -136,14 +135,6 @@ export default {
return displayName
},
/**
* Whether the given message is a system message
*
* @return {boolean}
*/
isSystemMessage() {
return this.messages[0].systemMessage.length !== 0
},
},
}
</script>
Expand Down Expand Up @@ -175,9 +166,6 @@ export default {
display: flex;
margin: auto;
padding: 0;
&--system {
padding-left: $clickable-area + 8px;
}
&:focus {
background-color: rgba(47, 47, 47, 0.068);
}
Expand Down

0 comments on commit 754e1d9

Please sign in to comment.