Skip to content
Snippets Groups Projects
Commit 2141711d authored by nizune's avatar nizune
Browse files

Fixed username in replies

parent c1dc2b9a
No related merge requests found
Subproject commit de2b94c8d8615b732cbbec3679041e73fd3c7640 Subproject commit 2054052c791ff2396dcbde68ae257fa13a93ab6c
...@@ -29,10 +29,11 @@ export const ReplyBase = styled.div<{ ...@@ -29,10 +29,11 @@ export const ReplyBase = styled.div<{
}>` }>`
gap: 4px; gap: 4px;
display: flex; display: flex;
margin: 0 30px; margin-inline-start: 30px;
margin-inline-end: 12px;
margin-bottom: 4px;
font-size: 0.8em; font-size: 0.8em;
user-select: none; user-select: none;
margin-bottom: 4px;
align-items: center; align-items: center;
color: var(--secondary-foreground); color: var(--secondary-foreground);
...@@ -42,6 +43,21 @@ export const ReplyBase = styled.div<{ ...@@ -42,6 +43,21 @@ export const ReplyBase = styled.div<{
text-overflow: ellipsis; 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 { .content {
gap: 4px; gap: 4px;
display: flex; display: flex;
...@@ -120,7 +136,7 @@ export function MessageReply({ index, channel, id }: Props) { ...@@ -120,7 +136,7 @@ export function MessageReply({ index, channel, id }: Props) {
{message.author === SYSTEM_USER_ID ? ( {message.author === SYSTEM_USER_ID ? (
<SystemMessage message={message} hideInfo /> <SystemMessage message={message} hideInfo />
) : <> ) : <>
<UserShort user={user} size={16} /> <div className="user"><UserShort user={user} size={16} /></div>
<div className="content" onClick={() => { <div className="content" onClick={() => {
let obj = ctx.client.channels.get(channel); let obj = ctx.client.channels.get(channel);
if (obj?.channel_type === 'TextChannel') { if (obj?.channel_type === 'TextChannel') {
......
...@@ -31,9 +31,9 @@ export function Component(props: Props) { ...@@ -31,9 +31,9 @@ export function Component(props: Props) {
: "EXPERIMENTS_DISABLE", : "EXPERIMENTS_DISABLE",
key, key,
}) })
}> }
description={ EXPERIMENTS[key].description }>
{ EXPERIMENTS[key].title } { EXPERIMENTS[key].title }
<p>{ EXPERIMENTS[key].description }</p>
</Checkbox> </Checkbox>
))} ))}
{AVAILABLE_EXPERIMENTS.length === 0 && ( {AVAILABLE_EXPERIMENTS.length === 0 && (
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment