mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
Improve reply mention styling
- [#220] reply mention now uses translations - reply mention styling improved - `@` fits better - `min-width: 6ch` is used to remove shifting between `on` and `off` lengths, mostly for the english `on/off` but could be modified to work with any language in the future.
This commit is contained in:
parent
a4138b52b0
commit
806e3108cb
1 changed files with 6 additions and 4 deletions
|
@ -47,11 +47,13 @@ const Base = styled.div`
|
|||
}
|
||||
|
||||
.toggle {
|
||||
gap: 4px;
|
||||
gap: 2px;
|
||||
display: flex;
|
||||
font-size: 12px;
|
||||
align-items: center;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
min-width: 6ch;
|
||||
}
|
||||
|
||||
.username {
|
||||
|
@ -150,7 +152,7 @@ export default observer(({ channel, replies, setReplies }: Props) => {
|
|||
</>
|
||||
)}
|
||||
{message.author_id ===
|
||||
"00000000000000000000000000" ? (
|
||||
"00000000000000000000000000" ? (
|
||||
<SystemMessage message={message} hideInfo />
|
||||
) : (
|
||||
<Markdown
|
||||
|
@ -188,8 +190,8 @@ export default observer(({ channel, replies, setReplies }: Props) => {
|
|||
});
|
||||
}}>
|
||||
<span class="toggle">
|
||||
<At size={16} />{" "}
|
||||
{reply.mention ? "ON" : "OFF"}
|
||||
<At size={15} />
|
||||
<Text id={reply.mention ? 'general.on' : 'general.off'} />
|
||||
</span>
|
||||
</IconButton>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue