Skip to content
Snippets Groups Projects
Unverified Commit f3a9327c authored by Ching-Hua (Vivian) Lin's avatar Ching-Hua (Vivian) Lin Committed by GitHub
Browse files

feat: Add scrollbar to explorer livefeed (#691)


* feat: Add scrollbar to explorer livefeed

* Update packr

Co-authored-by: default avatarLevente Pap <levente.pap@iota.org>
parent bc7ee7dc
Branches
Tags
No related merge requests found
...@@ -31,10 +31,9 @@ export class ExplorerLiveFeed extends React.Component<Props, any> { ...@@ -31,10 +31,9 @@ export class ExplorerLiveFeed extends React.Component<Props, any> {
<thead> <thead>
<tr> <tr>
<td>Id</td> <td>Id</td>
<td>Value</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody style={{'height':'300px', 'overflow':'scroll', 'display':'block'}}>
{msgsLiveFeed} {msgsLiveFeed}
</tbody> </tbody>
</Table> </Table>
......
...@@ -56,7 +56,7 @@ class MessageRef { ...@@ -56,7 +56,7 @@ class MessageRef {
id: string; id: string;
} }
const liveFeedSize = 10; const liveFeedSize = 50;
enum QueryError { enum QueryError {
NotFound = 1 NotFound = 1
...@@ -231,8 +231,8 @@ export class ExplorerStore { ...@@ -231,8 +231,8 @@ export class ExplorerStore {
for (let i = this.latest_messages.length - 1; i >= 0; i--) { for (let i = this.latest_messages.length - 1; i >= 0; i--) {
let msg = this.latest_messages[i]; let msg = this.latest_messages[i];
feed.push( feed.push(
<tr key={msg.id}> <tr key={msg.id} style={{'display':'block'}}>
<td> <td style={{'display':'block'}}>
<Link to={`/explorer/message/${msg.id}`}> <Link to={`/explorer/message/${msg.id}`}>
{msg.id.substr(0, 35)} {msg.id.substr(0, 35)}
</Link> </Link>
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment