Fixed username in replies

This commit is contained in:
nizune 2021-07-09 21:46:35 +02:00
parent c1dc2b9a1d
commit 2141711d9e
3 changed files with 22 additions and 6 deletions

2
external/lang vendored

@ -1 +1 @@
Subproject commit de2b94c8d8615b732cbbec3679041e73fd3c7640
Subproject commit 2054052c791ff2396dcbde68ae257fa13a93ab6c

View file

@ -29,10 +29,11 @@ export const ReplyBase = styled.div<{
}>`
gap: 4px;
display: flex;
margin: 0 30px;
margin-inline-start: 30px;
margin-inline-end: 12px;
margin-bottom: 4px;
font-size: 0.8em;
user-select: none;
margin-bottom: 4px;
align-items: center;
color: var(--secondary-foreground);
@ -42,6 +43,21 @@ export const ReplyBase = styled.div<{
text-overflow: ellipsis;
}
.user {
display: flex;
gap: 4px;
flex-shrink: 0;
font-weight: 600;
align-items: center;
/*&::before {
position:relative;
width: 50px;
height: 2px;
background: red;
}*/
}
.content {
gap: 4px;
display: flex;
@ -120,7 +136,7 @@ export function MessageReply({ index, channel, id }: Props) {
{message.author === SYSTEM_USER_ID ? (
<SystemMessage message={message} hideInfo />
) : <>
<UserShort user={user} size={16} />
<div className="user"><UserShort user={user} size={16} /></div>
<div className="content" onClick={() => {
let obj = ctx.client.channels.get(channel);
if (obj?.channel_type === 'TextChannel') {

View file

@ -31,9 +31,9 @@ export function Component(props: Props) {
: "EXPERIMENTS_DISABLE",
key,
})
}>
}
description={ EXPERIMENTS[key].description }>
{ EXPERIMENTS[key].title }
<p>{ EXPERIMENTS[key].description }</p>
</Checkbox>
))}
{AVAILABLE_EXPERIMENTS.length === 0 && (