This commit is contained in:
Cassie Tarakajian 2017-07-24 11:12:11 -04:00
parent e987e8f483
commit 983248ccb7
3 changed files with 53 additions and 45 deletions

View file

@ -20,6 +20,10 @@ class SketchList extends React.Component {
const username = this.props.username !== undefined ? this.props.username : this.props.user.username;
return (
<div className="sketches-table-container">
{ this.props.sketches.length === 0 &&
<p className="sketches-table__empty">No sketches.</p>
}
{ this.props.sketches.length > 0 &&
<table className="sketches-table" summary="table containing all saved projects">
<thead>
<tr>
@ -62,7 +66,7 @@ class SketchList extends React.Component {
</tr>
)}
</tbody>
</table>
</table>}
</div>
);
}

View file

@ -1,5 +1,5 @@
.asset-table-container {
flex: 1 1 0%;
// flex: 1 1 0%;
overflow-y: scroll;
max-width: 100%;
width: #{1000 / $base-font-size}rem;

View file

@ -1,9 +1,8 @@
.sketches-table-container {
flex: 1 1 0%;
overflow-y: scroll;
max-width: 100%;
width: #{1000 / $base-font-size}rem;
min-height: #{400 / $base-font-size}rem;
}
.sketches-table {
@ -72,3 +71,8 @@
}
}
}
.sketches-table__empty {
text-align: center;
font-size: #{16 / $base-font-size}rem;
}