Skip to content

Commit 0da200b

Browse files
committed
restyle bottom bar
1 parent eb7358c commit 0da200b

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/dashboard/Data/Browser/BrowserFooter.react.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class BrowserFooter extends React.Component {
6868
<span>
6969
<strong>{count?.toLocaleString() || 0}</strong> objects
7070
</span>
71+
<span style={{ color: 'lightgray' }}>|</span>
7172
<select value={limit} onChange={this.handleLimitChange}>
7273
{[10, 20, 50, 100, 200, 500, 1000].map(size => (
7374
<option key={size} value={size}>
@@ -76,24 +77,29 @@ class BrowserFooter extends React.Component {
7677
))}
7778
</select>
7879
<span>per page</span>
80+
<span style={{ color: 'lightgray' }}>|</span>
81+
<span>Objects <strong>{(skip + 1).toLocaleString()}</strong> to <strong>{Math.min(count ?? limit, skip + limit).toLocaleString()}</strong></span>
82+
<span style={{ marginLeft: 'auto' }}></span>
83+
<span>Page</span>
7984
<input
8085
type="text"
81-
style={{ marginLeft: 'auto', width: '50px' }}
86+
style={{ width: `${Math.max(this.state.pageInput.length + 1, 3)}ch` }}
8287
value={this.state.pageInput}
8388
onChange={this.handleInputChange}
8489
onBlur={this.validateAndApplyPage}
8590
onKeyDown={this.handleKeyDown}
8691
/>
87-
<span>/ {totalPages.toLocaleString()}</span>
92+
<span>of {totalPages.toLocaleString()}</span>
93+
<span style={{ color: 'lightgray' }}>|</span>
8894
<Button
89-
value="Previous"
90-
width="100px"
95+
value="⬅︎"
96+
width="80px"
9197
onClick={() => this.handlePageChange(skip - limit)}
9298
disabled={skip === 0}
9399
/>
94100
<Button
95-
value="Next"
96-
width="100px"
101+
value=""
102+
width="80px"
97103
onClick={() => this.handlePageChange(skip + limit)}
98104
disabled={skip + limit >= count}
99105
/>

0 commit comments

Comments
 (0)