mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
detect window resize
This commit is contained in:
parent
5c914a6de1
commit
d4e44b888e
@ -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;
|
||||
|
@ -21,7 +21,7 @@ export const ChatlogView: FC<ChatlogViewProps> = props =>
|
||||
rowIndex={props.index}
|
||||
>
|
||||
<div key={props.key} style={props.style} className="row chatlog-entry justify-content-start">
|
||||
<div className="col-md-auto text-center">{item.timestamp}</div>
|
||||
<div className="col-auto text-center">{item.timestamp}</div>
|
||||
<div className="col-sm-2 justify-content-start username"><span className="fw-bold cursor-pointer" onClick={() => SendMessageHook(new UserProfileComposer(item.userId))}>{item.userName}</span></div>
|
||||
<div className="col justify-content-start h-100"><span className="text-break text-wrap h-100">{item.message}</span></div>
|
||||
</div>
|
||||
@ -38,7 +38,7 @@ export const ChatlogView: FC<ChatlogViewProps> = props =>
|
||||
<>
|
||||
{record && <div className="chatlog-messages w-100 h-100 overflow-hidden">
|
||||
<div className="row align-items-start w-100">
|
||||
<div className="col-md-auto text-center fw-bold">Time</div>
|
||||
<div className="col-auto text-center fw-bold">Time</div>
|
||||
<div className="col-sm-2 username-label fw-bold">User</div>
|
||||
<div className="col fw-bold">Message</div>
|
||||
</div>
|
||||
@ -46,6 +46,8 @@ export const ChatlogView: FC<ChatlogViewProps> = props =>
|
||||
<AutoSizer defaultWidth={400} defaultHeight={200}>
|
||||
{({ height, width }) =>
|
||||
{
|
||||
cache.clearAll();
|
||||
|
||||
return (
|
||||
<List
|
||||
width={width}
|
||||
|
Loading…
Reference in New Issue
Block a user