Fix mod tool

This commit is contained in:
Bill 2022-03-15 06:22:22 -04:00
parent 4877e1b8a5
commit 77da66700e
3 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ export const ChatlogView: FC<ChatlogViewProps> = props =>
{ (isRoomInfo && currentRecord) && { (isRoomInfo && currentRecord) &&
<RoomInfo roomId={ currentRecord.roomId } roomName={ currentRecord.roomName } uniqueKey={ props.key } style={ props.style } /> } <RoomInfo roomId={ currentRecord.roomId } roomName={ currentRecord.roomName } uniqueKey={ props.key } style={ props.style } /> }
{ !isRoomInfo && { !isRoomInfo &&
<Grid key={ props.key } style={ props.style } gap={ 1 } alignItems="center" className="log-entry py-1 border-bottom"> <Grid key={ props.key } fullHeight={ false } style={ props.style } gap={ 1 } alignItems="center" className="log-entry py-1 border-bottom">
<Text className="g-col-2">{ chatlogEntry.timestamp }</Text> <Text className="g-col-2">{ chatlogEntry.timestamp }</Text>
<Text className="g-col-3" bold underline pointer onClick={ event => SendMessageComposer(new UserProfileComposer(chatlogEntry.userId)) }>{ chatlogEntry.userName }</Text> <Text className="g-col-3" bold underline pointer onClick={ event => SendMessageComposer(new UserProfileComposer(chatlogEntry.userId)) }>{ chatlogEntry.userName }</Text>
<Text textBreak wrap className="g-col-7">{ chatlogEntry.message }</Text> <Text textBreak wrap className="g-col-7">{ chatlogEntry.message }</Text>

View File

@ -34,7 +34,7 @@ export const CfhChatlogView: FC<CfhChatlogViewProps> = props =>
UseMessageEventHook(CfhChatlogEvent, onCfhChatlogEvent); UseMessageEventHook(CfhChatlogEvent, onCfhChatlogEvent);
return ( return (
<NitroCardView className="nitro-mod-tools-cfh-chatlog" theme="primary-slim"> <NitroCardView className="nitro-mod-tools-chatlog" theme="primary-slim">
<NitroCardHeaderView headerText={'Issue Chatlog'} onCloseClick={onCloseClick} /> <NitroCardHeaderView headerText={'Issue Chatlog'} onCloseClick={onCloseClick} />
<NitroCardContentView className="text-black"> <NitroCardContentView className="text-black">
{ chatlogData && <ChatlogView records={[chatlogData.chatRecord]} />} { chatlogData && <ChatlogView records={[chatlogData.chatRecord]} />}

View File

@ -32,7 +32,7 @@ export const ModToolsUserRoomVisitsView: FC<ModToolsUserRoomVisitsViewProps> = p
const item = roomVisitData.rooms[props.index]; const item = roomVisitData.rooms[props.index];
return ( return (
<Grid key={ props.key } style={ props.style } gap={ 1 } alignItems="center" className="text-black py-1 border-bottom"> <Grid key={ props.key } fullHeight={ false } style={ props.style } gap={ 1 } alignItems="center" className="text-black py-1 border-bottom">
<Text className="g-col-2">{ item.enterHour.toString().padStart(2, '0') }: { item.enterMinute.toString().padStart(2, '0') }</Text> <Text className="g-col-2">{ item.enterHour.toString().padStart(2, '0') }: { item.enterMinute.toString().padStart(2, '0') }</Text>
<Text className="g-col-7">{ item.roomName }</Text> <Text className="g-col-7">{ item.roomName }</Text>
<Text bold underline pointer variant="primary" className="g-col-3" onClick={ event => TryVisitRoom(item.roomId) }>Visit Room</Text> <Text bold underline pointer variant="primary" className="g-col-3" onClick={ event => TryVisitRoom(item.roomId) }>Visit Room</Text>
@ -69,7 +69,7 @@ export const ModToolsUserRoomVisitsView: FC<ModToolsUserRoomVisitsViewProps> = p
width={ width } width={ width }
height={ height } height={ height }
rowCount={ roomVisitData.rooms.length } rowCount={ roomVisitData.rooms.length }
rowHeight={ 20 } rowHeight={ 25 }
className={'log-entry-container' } className={'log-entry-container' }
rowRenderer={ RowRenderer } rowRenderer={ RowRenderer }
/> />