From d4e44b888ee3d89a239429f9781dd0c48ee76a1d Mon Sep 17 00:00:00 2001 From: dank074 Date: Sat, 16 Oct 2021 01:26:03 -0500 Subject: [PATCH] detect window resize --- src/views/mod-tools/views/chatlog/ChatlogView.scss | 2 +- src/views/mod-tools/views/chatlog/ChatlogView.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/mod-tools/views/chatlog/ChatlogView.scss b/src/views/mod-tools/views/chatlog/ChatlogView.scss index 6d9ceb16..662d0c7a 100644 --- a/src/views/mod-tools/views/chatlog/ChatlogView.scss +++ b/src/views/mod-tools/views/chatlog/ChatlogView.scss @@ -1,5 +1,6 @@ .chatlog-messages { color: $black; + min-width: 400px; $username-col-width: 100px; @@ -9,7 +10,6 @@ .chatlog { min-height: 200px; - min-width: 400px; .chatlog-container { color: $black; diff --git a/src/views/mod-tools/views/chatlog/ChatlogView.tsx b/src/views/mod-tools/views/chatlog/ChatlogView.tsx index 64e9a9ca..78b3dd07 100644 --- a/src/views/mod-tools/views/chatlog/ChatlogView.tsx +++ b/src/views/mod-tools/views/chatlog/ChatlogView.tsx @@ -21,7 +21,7 @@ export const ChatlogView: FC = props => rowIndex={props.index} >
-
{item.timestamp}
+
{item.timestamp}
SendMessageHook(new UserProfileComposer(item.userId))}>{item.userName}
{item.message}
@@ -38,7 +38,7 @@ export const ChatlogView: FC = props => <> {record &&
-
Time
+
Time
User
Message
@@ -46,6 +46,8 @@ export const ChatlogView: FC = props => {({ height, width }) => { + cache.clearAll(); + return (