Added moderator menu to messages and some other styling.

created new ant overrides file.

Ignore the static directory
This commit is contained in:
t1enne
2022-07-01 22:49:42 +02:00
parent 1cf90fb581
commit e6cc3a39d1
10 changed files with 622 additions and 509 deletions

View File

@@ -43,7 +43,8 @@ export default function ChatContainer(props: Props) {
message={message as ChatMessage}
showModeratorMenu={isModerator} // Moderators have access to an additional menu
highlightString={usernameToHighlight} // What to highlight in the message
renderAsPersonallySent={message.user?.id === chatUserId} // The local user sent this message
sentBySelf={message.user?.id === chatUserId} // The local user sent this message
sameUserAsLast={message.user?.id === messages[messages.length - 1].user?.id}
key={message.id}
/>
);
@@ -70,7 +71,7 @@ export default function ChatContainer(props: Props) {
{!atBottom && (
<div className={s.toBottomWrap}>
<Button
ghost
type="default"
icon={<VerticalAlignBottomOutlined />}
onClick={() =>
chatContainerRef.current.scrollToIndex({