Skip to content

Commit 5de4084

Browse files
author
Julien Bouquillon
committed
chore: example ux
1 parent cba1154 commit 5de4084

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

example/src/index.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Intro = () => (
2727
<hr className="my-4" />
2828
<p>
2929
On this page you can find different examples of OrbitDB databases. <br />
30-
Other visitors can also interact in real-time with the data. <br />
30+
Other visitors/browsers can interact in real-time with the data. <br />
3131
<br />
3232
<b>No server!</b>
3333
</p>
@@ -122,6 +122,13 @@ const DocStoreDemo = () => {
122122
</h5>
123123
<table className="table table-striped">
124124
<tbody>
125+
{/* add an hidden row so strip color cycle on each new event */}
126+
{(records.length % 2 && (
127+
<tr style={{ display: "none" }}>
128+
<td>&nbsp;</td>
129+
</tr>
130+
)) ||
131+
null}
125132
{records
126133
.reverse()
127134
.slice(0, 10)
@@ -199,6 +206,13 @@ const KeyValueDemo = () => {
199206
</h5>
200207
<table className="table table-striped">
201208
<tbody>
209+
{/* add an hidden row so strip color cycle on each new event */}
210+
{(Object.keys(records).length % 2 && (
211+
<tr style={{ display: "none" }}>
212+
<td>&nbsp;</td>
213+
</tr>
214+
)) ||
215+
null}
202216
{Object.keys(records)
203217
.reverse()
204218
.slice(0, 10)

0 commit comments

Comments
 (0)