Shorten date displayed in Collection List items for better layout

This commit is contained in:
Andrew Nicolaou 2019-09-11 20:06:08 +02:00 committed by Cassie Tarakajian
parent 95f6105a8b
commit c288481476

View file

@ -216,8 +216,8 @@ class CollectionListRowBase extends React.Component {
<th scope="row"> <th scope="row">
{this.renderCollectionName()} {this.renderCollectionName()}
</th> </th>
<td>{format(new Date(collection.createdAt), 'MMM D, YYYY h:mm A')}</td> <td>{format(new Date(collection.createdAt), 'MMM D, YYYY')}</td>
<td>{format(new Date(collection.updatedAt), 'MMM D, YYYY h:mm A')}</td> <td>{format(new Date(collection.updatedAt), 'MMM D, YYYY')}</td>
<td>{(collection.items || []).length}</td> <td>{(collection.items || []).length}</td>
<td className="sketch-list__dropdown-column"> <td className="sketch-list__dropdown-column">
{this.renderActions()} {this.renderActions()}