Skip to content

Commit

Permalink
Fixed chat avatar decorations thanks to @Lioncat6
Browse files Browse the repository at this point in the history
  • Loading branch information
Gibbu committed Mar 31, 2024
1 parent 1440600 commit dae47ff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

:root {
--softx-version: '1.2.0';
--softx-version: '1.2.1';

--hue: 0deg;
--saturation: 0%;
Expand Down
16 changes: 16 additions & 0 deletions src/theme/chat/_message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ body,
rgb(var(--accent), 0.2);
}
}
// Chat decorations fix by @lioncat6
.avatarDecoration__8a0c2 {
--_radio: var(--decoration-to-avatar-ratio);
left: calc(
var(--custom-message-margin-horizontal) -
(calc(calc(var(--chat-avatar-size) * var(--_radio)) * var(--_radio)) - calc(var(--chat-avatar-size) * 1.25)) /
2.4
);
margin-top: calc(
4px - var(--custom-message-spacing-vertical-container-cozy) -
(calc(calc(var(--chat-avatar-size) * var(--_radio)) * var(--_radio)) - calc(var(--chat-avatar-size) * 1.25)) /
var(--_radio)
);
width: calc(var(--chat-avatar-size) * var(--_radio));
height: calc(var(--chat-avatar-size) * var(--_radio));
}
}

// Message actions
Expand Down

0 comments on commit dae47ff

Please sign in to comment.