🚧 move drop arrow to top of card, unhide CollectionList createdAt

This commit is contained in:
ghalestrilo 2020-08-12 17:13:03 -03:00
parent 4b12f2f2f6
commit 9f3e083c17
3 changed files with 11 additions and 6 deletions

View File

@ -143,7 +143,7 @@ class CollectionList extends React.Component {
<thead>
<tr>
{this._renderFieldHeader('name', 'Name')}
{(!mobile) && this._renderFieldHeader('createdAt', 'Date Created')}
{this._renderFieldHeader('createdAt', 'Date Created')}
{this._renderFieldHeader('updatedAt', 'Date Updated')}
{this._renderFieldHeader('numItems', '# sketches')}
<th scope="col"></th>

View File

@ -213,7 +213,7 @@ class CollectionListRowBase extends React.Component {
{this.renderCollectionName()}
</span>
</th>
{(!mobile) && <td>{format(new Date(collection.createdAt), 'MMM D, YYYY')}</td>}
<td>{mobile && 'Created: '}{format(new Date(collection.createdAt), 'MMM D, YYYY')}</td>
<td>{mobile && 'Updated: '}{formatDateCell(collection.updatedAt)}</td>
<td>{mobile && '# sketches: '}{(collection.items || []).length}</td>
<td className="sketch-list__dropdown-column">

View File

@ -55,7 +55,12 @@ const ContentWrapper = styled(Content)`
tbody td { justify-self: start; text-align: start; padding: 0 }
tbody td:nth-child(2) { justify-self: start; text-align: start; padding-left: ${remSize(12)}};
tbody td:last-child { justify-self: end; text-align: end; };
tbody td:last-child {
justify-self: end;
text-align: end;
grid-row-start: 1;
grid-column-start: 3;
};
.sketch-list__dropdown-column { width: auto; };
@ -78,13 +83,13 @@ const ContentWrapper = styled(Content)`
};
thead tr {
grid-template-columns: 1fr 1fr 1fr 0fr;
grid-template-columns: repeat(${props => props.fieldcount}, 1fr) 0fr;
}
tbody tr {
padding: ${remSize(8)};
border-radius: ${remSize(4)};
grid-template-columns: 5fr 5fr 1fr;
grid-template-columns: repeat(${props => props.fieldcount - 1}) 1fr;
grid-template-areas: "name name name" "content content content";
}
@ -180,7 +185,7 @@ const MobileDashboard = ({ params, location }) => {
</Header>
<ContentWrapper slimheader>
<ContentWrapper slimheader fieldcount={panel === Tabs[1] ? 4 : 3}>
<Subheader>
{panel === Tabs[0] && <SketchSearchbar />}
{panel === Tabs[1] && <CollectionSearchbar />}