diff --git a/optuna_dashboard/static/components/DataGrid.tsx b/optuna_dashboard/static/components/DataGrid.tsx index 18b32890..951a26ae 100644 --- a/optuna_dashboard/static/components/DataGrid.tsx +++ b/optuna_dashboard/static/components/DataGrid.tsx @@ -41,6 +41,9 @@ const useStyles = makeStyles((theme: Theme) => textDecoration: "underline", cursor: "pointer", }, + tableHeaderCell: { + display: "inline-flex", + }, }) ) @@ -157,40 +160,42 @@ function DataGrid(props: { padding={column.padding || "default"} sortDirection={orderBy === column.field ? order : false} > - {column.sortable ? ( - - {column.label} - {orderBy === column.field ? ( - - {order === "desc" - ? "sorted descending" - : "sorted ascending"} - - ) : null} - - ) : ( - column.label - )} - {column.filterable ? ( - { - clearFilter(column.field) - }} - > - - - ) : null} + + {column.sortable ? ( + + {column.label} + {orderBy === column.field ? ( + + {order === "desc" + ? "sorted descending" + : "sorted ascending"} + + ) : null} + + ) : ( + column.label + )} + {column.filterable ? ( + { + clearFilter(column.field) + }} + > + + + ) : null} + ))}