Fix sketch list padding in collection view

This commit is contained in:
Andrew Nicolaou 2019-09-16 23:13:20 +02:00 committed by Cassie Tarakajian
parent 7a1fa663af
commit 7f78fda073
2 changed files with 27 additions and 20 deletions

View file

@ -301,7 +301,7 @@ class Collection extends React.Component {
} }
</h2> </h2>
<p className="collection-metadata__user">{items.length} sketches collected by {owner.username}</p> <p className="collection-metadata__user">{items.length} sketch{items.length === 1 ? '' : 'es'} collected by {owner.username}</p>
<p className="collection-metadata__description"> <p className="collection-metadata__description">
{ {
@ -359,6 +359,7 @@ class Collection extends React.Component {
{this.hasCollection() && this._renderCollectionMetadata()} {this.hasCollection() && this._renderCollectionMetadata()}
{this._renderEmptyTable()} {this._renderEmptyTable()}
{this.hasCollectionItems() && {this.hasCollectionItems() &&
<div className="collection-table-wrapper">
<table className="sketches-table" summary="table containing all collections"> <table className="sketches-table" summary="table containing all collections">
<thead> <thead>
<tr> <tr>
@ -377,7 +378,9 @@ class Collection extends React.Component {
username={this.getUsername()} username={this.getUsername()}
/>))} />))}
</tbody> </tbody>
</table>} </table>
</div>
}
</div> </div>
</section> </section>
); );

View file

@ -39,3 +39,7 @@
.collection-metadata__description .editable-input__input { .collection-metadata__description .editable-input__input {
width: 100%; width: 100%;
} }
.collection-table-wrapper {
margin: #{28 / $base-font-size}rem #{56 / $base-font-size}rem;
}