Skip to content

Commit

Permalink
username effect disable
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminDreasond committed Aug 15, 2023
1 parent 1783a93 commit 223a35a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/molecules/message/Message.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ const MessageHeader = React.memo(({

return (
<span className='username-base emoji-size-fix' style={{ color: colorMXID(userId) }}>
<span className='username'>{tinyUsername}</span>
<span className='user-id'>{!appAppearance.isUNhoverDisabled ? twemojifyReact(userId) : tinyUsername}</span>
<span className={`username${!appAppearance.isUNhoverDisabled ? '' : ' disable-username'}`}>{tinyUsername}</span>
<span className={`user-id${!appAppearance.isUNhoverDisabled ? '' : ' disable-username'}`}>{!appAppearance.isUNhoverDisabled ? twemojifyReact(userId) : tinyUsername}</span>
</span>
);

Expand Down
4 changes: 2 additions & 2 deletions src/scss/Message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@
.hc-time {
display: block;
}
.username {
.username:not(.disable-username) {
display: none;
}
.user-id {
.user-id:not(.disable-username) {
display: inline-block;
}
.message__options {
Expand Down

0 comments on commit 223a35a

Please sign in to comment.