diff options
author | VeraLyu <lvroyce0210@gmail.com> | 2017-03-23 18:39:15 +0800 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-03-23 10:39:15 +0000 |
commit | 0326177253bd3b4a2933e084a8759473998b60c0 (patch) | |
tree | d72f8cc7a5f05f85fe6a4371a61a5139edfe140e /webapp/components/audit_table.jsx | |
parent | 41ebdb6441348c383efb1a032804ba900a8e98a3 (diff) | |
download | chat-0326177253bd3b4a2933e084a8759473998b60c0.tar.gz chat-0326177253bd3b4a2933e084a8759473998b60c0.tar.bz2 chat-0326177253bd3b4a2933e084a8759473998b60c0.zip |
PLT-5669: Change format of timestamp of access history (#5646)
Add new line for timestamp and forbid wrap for ip and sessionid of access history to
prevent unnecessary line wrap.
Diffstat (limited to 'webapp/components/audit_table.jsx')
-rw-r--r-- | webapp/components/audit_table.jsx | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/webapp/components/audit_table.jsx b/webapp/components/audit_table.jsx index c70c659d4..34e61dbac 100644 --- a/webapp/components/audit_table.jsx +++ b/webapp/components/audit_table.jsx @@ -229,12 +229,12 @@ class AuditTable extends React.Component { let iContent; if (this.props.showIp) { - iContent = <td className='word-break--all'>{auditInfo.ip}</td>; + iContent = <td className='whitespace--nowrap word-break--all'>{auditInfo.ip}</td>; } let sContent; if (this.props.showSession) { - sContent = <td className='word-break--all'>{auditInfo.sessionId}</td>; + sContent = <td className='whitespace--nowrap word-break--all'>{auditInfo.sessionId}</td>; } const descStyle = {}; @@ -244,7 +244,7 @@ class AuditTable extends React.Component { accessList[i] = ( <tr key={audit.id}> - <td className='word-break--all'>{auditInfo.timestamp}</td> + <td className='whitespace--nowrap word-break--all'>{auditInfo.timestamp}</td> {uContent} <td className='word-break--all' @@ -615,18 +615,21 @@ export function formatAuditInfo(audit, formatMessage) { const auditInfo = {}; auditInfo.timestamp = ( <div> - <FormattedDate - value={date} - day='2-digit' - month='short' - year='numeric' - /> - {' - '} - <FormattedTime - value={date} - hour='2-digit' - minute='2-digit' - /> + <div> + <FormattedDate + value={date} + day='2-digit' + month='short' + year='numeric' + /> + </div> + <div> + <FormattedTime + value={date} + hour='2-digit' + minute='2-digit' + /> + </div> </div> ); auditInfo.userId = audit.user_id; |