Skip to content

Commit

Permalink
Adjust the height of the text field
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 committed Jan 15, 2024
1 parent edfa7f5 commit 501dd2f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions optuna_dashboard/ts/components/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ function DataGrid<T>(props: {
return (
<form onSubmit={handleSubmitPageNumber}>
<TextField
size="small"
label={`Go to Page: n / ${maxPageNumber}`}
value={specifiedPageText}
type="number"
style={{ width: 200 }}
inputProps={{ min: 1, max: maxPageNumber }}
onChange={(e) => {
setSpecifiedPageText(e.target.value)
}}
Expand Down Expand Up @@ -224,9 +224,6 @@ function DataGrid<T>(props: {
count={filteredRows.length}
rowsPerPage={rowsPerPage}
page={page}
labelDisplayedRows={({ page }) =>
`${page + 1} of ${maxPageNumber}`
}
onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage}
/>
Expand Down

0 comments on commit 501dd2f

Please sign in to comment.