Fix sketch list padding in collection view
This commit is contained in:
parent
8b058d8e56
commit
709aa8eccb
2 changed files with 27 additions and 20 deletions
|
@ -301,7 +301,7 @@ class Collection extends React.Component {
|
|||
}
|
||||
</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">
|
||||
{
|
||||
|
@ -359,25 +359,28 @@ class Collection extends React.Component {
|
|||
{this.hasCollection() && this._renderCollectionMetadata()}
|
||||
{this._renderEmptyTable()}
|
||||
{this.hasCollectionItems() &&
|
||||
<table className="sketches-table" summary="table containing all collections">
|
||||
<thead>
|
||||
<tr>
|
||||
{this._renderFieldHeader('name', 'Name')}
|
||||
{this._renderFieldHeader('createdAt', 'Date Added')}
|
||||
{this._renderFieldHeader('user', 'Owner')}
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{this.props.collection.items.map(item =>
|
||||
(<CollectionItemRow
|
||||
key={item.id}
|
||||
item={item}
|
||||
user={this.props.user}
|
||||
username={this.getUsername()}
|
||||
/>))}
|
||||
</tbody>
|
||||
</table>}
|
||||
<div className="collection-table-wrapper">
|
||||
<table className="sketches-table" summary="table containing all collections">
|
||||
<thead>
|
||||
<tr>
|
||||
{this._renderFieldHeader('name', 'Name')}
|
||||
{this._renderFieldHeader('createdAt', 'Date Added')}
|
||||
{this._renderFieldHeader('user', 'Owner')}
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{this.props.collection.items.map(item =>
|
||||
(<CollectionItemRow
|
||||
key={item.id}
|
||||
item={item}
|
||||
user={this.props.user}
|
||||
username={this.getUsername()}
|
||||
/>))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
|
@ -39,3 +39,7 @@
|
|||
.collection-metadata__description .editable-input__input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.collection-table-wrapper {
|
||||
margin: #{28 / $base-font-size}rem #{56 / $base-font-size}rem;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue