diff --git a/src/components/mod-tools/views/chatlog/ChatlogView.tsx b/src/components/mod-tools/views/chatlog/ChatlogView.tsx index 7d29357a..27b99b51 100644 --- a/src/components/mod-tools/views/chatlog/ChatlogView.tsx +++ b/src/components/mod-tools/views/chatlog/ChatlogView.tsx @@ -1,8 +1,9 @@ -import { ChatRecordData, UserProfileComposer } from '@nitrots/nitro-renderer'; +import { ChatRecordData } from '@nitrots/nitro-renderer'; import { CSSProperties, FC, Key, useCallback } from 'react'; import { AutoSizer, CellMeasurer, CellMeasurerCache, List, ListRowProps } from 'react-virtualized'; -import { SendMessageComposer, TryVisitRoom } from '../../../../api'; +import { TryVisitRoom } from '../../../../api'; import { Base, Button, Column, Flex, Grid, Text } from '../../../../common'; +import { ModToolsOpenUserInfoEvent } from '../../../../events'; import { ModToolsOpenRoomInfoEvent } from '../../../../events/mod-tools/ModToolsOpenRoomInfoEvent'; import { DispatchUiEvent } from '../../../../hooks'; @@ -29,7 +30,7 @@ export const ChatlogView: FC = props => > { chatlogEntry.timestamp } - SendMessageComposer(new UserProfileComposer(chatlogEntry.userId)) }>{ chatlogEntry.userName } + DispatchUiEvent(new ModToolsOpenUserInfoEvent(chatlogEntry.userId)) }>{ chatlogEntry.userName } { chatlogEntry.message } @@ -79,7 +80,7 @@ export const ChatlogView: FC = props => { !isRoomInfo && { chatlogEntry.timestamp } - SendMessageComposer(new UserProfileComposer(chatlogEntry.userId)) }>{ chatlogEntry.userName } + DispatchUiEvent(new ModToolsOpenUserInfoEvent(chatlogEntry.userId)) }>{ chatlogEntry.userName } { chatlogEntry.message } } diff --git a/src/components/room/widgets/avatar-info/AvatarInfoWidgetOwnAvatarView.tsx b/src/components/room/widgets/avatar-info/AvatarInfoWidgetOwnAvatarView.tsx index 3b12ce59..716c65f0 100644 --- a/src/components/room/widgets/avatar-info/AvatarInfoWidgetOwnAvatarView.tsx +++ b/src/components/room/widgets/avatar-info/AvatarInfoWidgetOwnAvatarView.tsx @@ -258,34 +258,34 @@ export const AvatarInfoWidgetOwnAvatarView: FC processAction('sign_10') }> 10 + processAction('sign_11') }> + + + processAction('sign_12') }> + + + + processAction('sign_0') }> 0 + processAction('sign_13') }> + + processAction('sign_15') }> - processAction('sign_12') }> - - processAction('sign_14') }> processAction('sign_17') }> - - processAction('sign_16') }> - processAction('sign_13') }> - - - processAction('sign_11') }> - - processAction('back') }> diff --git a/src/components/room/widgets/chat/ChatWidgetMessageView.tsx b/src/components/room/widgets/chat/ChatWidgetMessageView.tsx index 190d7629..fe005bb2 100644 --- a/src/components/room/widgets/chat/ChatWidgetMessageView.tsx +++ b/src/components/room/widgets/chat/ChatWidgetMessageView.tsx @@ -14,7 +14,7 @@ export const ChatWidgetMessageView: FC = props => const [ isVisible, setIsVisible ] = useState(false); const elementRef = useRef(); - const onMouseDown = (event: MouseEvent) => ((event.shiftKey) && onChatClicked(chat)); + const onMouseDown = (event: MouseEvent) => onChatClicked(chat); useEffect(() => { @@ -57,7 +57,7 @@ export const ChatWidgetMessageView: FC = props => useEffect(() => setIsVisible(chat.visible), [ chat.visible ]); return ( -
+
{ (chat.styleId === 0) &&
}
diff --git a/src/components/room/widgets/chat/ChatWidgetView.scss b/src/components/room/widgets/chat/ChatWidgetView.scss index d2b8c923..98b78a3e 100644 --- a/src/components/room/widgets/chat/ChatWidgetView.scss +++ b/src/components/room/widgets/chat/ChatWidgetView.scss @@ -39,11 +39,6 @@ // -webkit-animation-name: bounceIn; // animation-name: bounceIn; - &:hover, - &:active { - pointer-events: none; - } - .user-container-bg { position: absolute; top: -1px;