Skip to content

Commit

Permalink
Updated CSS for Header and Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpanjalip committed Jan 7, 2020
1 parent 3ecac9f commit 0a3eb90
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.content {
color: #ddd;
text-align: center;
padding: 50px 80px;
padding: 20px 80px;
}

.content h3 {
Expand Down
4 changes: 0 additions & 4 deletions src/components/Header/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
}
.appBar {
height: 80px;
transition: height 2s;
-webkit-transition: height 2s;
background: #fafafa !important;
}
/*.shrink {*/
Expand All @@ -28,8 +26,6 @@
/* // #204864d1 previous color for header*/
.shrink {
height: 64px;
transition: height 2s;
-webkit-transition: height 2s;
background: #fafafa !important;
}

Expand Down
27 changes: 18 additions & 9 deletions src/components/Leaderboard/LeaderboardTable/LeaderboardTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
withStyles,
WithStyles,
} from '@material-ui/core';
import VisualizationIcon from '@material-ui/icons/BarChart';
import { formatDateTime } from 'src/utils';
import { UUID4 } from 'src/types';
import { INestedSubmission } from '../index';
Expand Down Expand Up @@ -113,8 +114,6 @@ class LeaderboardTable extends React.Component<IProps, IState> {
}

const isSelected = (id: string) => selected.indexOf(id) !== -1;

const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
const handleSelectAllClick = (event: React.ChangeEvent<HTMLInputElement>) => {
if (event.target.checked) {
const newSelecteds = data.map((n) => n.id);
Expand Down Expand Up @@ -252,16 +251,31 @@ class LeaderboardTable extends React.Component<IProps, IState> {
// visualization
// </a>)
(
<button
<Fab
variant="extended"
size="small"
aria-label="add"
color="secondary"
onClick={() => {
this.setState({
observableUrl: n.visualization.toString(),
observableJobId: n.evaluationJob,
});
}}
>
<VisualizationIcon color="primary" />
visualize
</button>
</Fab>
// <button
// onClick={() => {
// this.setState({
// observableUrl: n.visualization.toString(),
// observableJobId: n.evaluationJob,
// });
// }}
// >
// visualize
// </button>
)
: '-'
}
Expand Down Expand Up @@ -290,11 +304,6 @@ class LeaderboardTable extends React.Component<IProps, IState> {
);
},
)}
{emptyRows > 0 && (
<TableRow style={{ height: 49 * emptyRows }}>
<TableCell colSpan={6} />
</TableRow>
)}
</TableBody>
</Table>
</div>
Expand Down

0 comments on commit 0a3eb90

Please sign in to comment.