Skip to content

Commit 9f3e083

Browse files
committed
🚧 move drop arrow to top of card, unhide CollectionList createdAt
1 parent 4b12f2f commit 9f3e083

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

client/modules/IDE/components/CollectionList/CollectionList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class CollectionList extends React.Component {
143143
<thead>
144144
<tr>
145145
{this._renderFieldHeader('name', 'Name')}
146-
{(!mobile) && this._renderFieldHeader('createdAt', 'Date Created')}
146+
{this._renderFieldHeader('createdAt', 'Date Created')}
147147
{this._renderFieldHeader('updatedAt', 'Date Updated')}
148148
{this._renderFieldHeader('numItems', '# sketches')}
149149
<th scope="col"></th>

client/modules/IDE/components/CollectionList/CollectionListRow.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class CollectionListRowBase extends React.Component {
213213
{this.renderCollectionName()}
214214
</span>
215215
</th>
216-
{(!mobile) && <td>{format(new Date(collection.createdAt), 'MMM D, YYYY')}</td>}
216+
<td>{mobile && 'Created: '}{format(new Date(collection.createdAt), 'MMM D, YYYY')}</td>
217217
<td>{mobile && 'Updated: '}{formatDateCell(collection.updatedAt)}</td>
218218
<td>{mobile && '# sketches: '}{(collection.items || []).length}</td>
219219
<td className="sketch-list__dropdown-column">

client/modules/Mobile/MobileDashboardView.jsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ const ContentWrapper = styled(Content)`
5555
5656
tbody td { justify-self: start; text-align: start; padding: 0 }
5757
tbody td:nth-child(2) { justify-self: start; text-align: start; padding-left: ${remSize(12)}};
58-
tbody td:last-child { justify-self: end; text-align: end; };
58+
tbody td:last-child {
59+
justify-self: end;
60+
text-align: end;
61+
grid-row-start: 1;
62+
grid-column-start: 3;
63+
};
5964
6065
.sketch-list__dropdown-column { width: auto; };
6166
@@ -78,13 +83,13 @@ const ContentWrapper = styled(Content)`
7883
};
7984
8085
thead tr {
81-
grid-template-columns: 1fr 1fr 1fr 0fr;
86+
grid-template-columns: repeat(${props => props.fieldcount}, 1fr) 0fr;
8287
}
8388
8489
tbody tr {
8590
padding: ${remSize(8)};
8691
border-radius: ${remSize(4)};
87-
grid-template-columns: 5fr 5fr 1fr;
92+
grid-template-columns: repeat(${props => props.fieldcount - 1}) 1fr;
8893
grid-template-areas: "name name name" "content content content";
8994
}
9095
@@ -180,7 +185,7 @@ const MobileDashboard = ({ params, location }) => {
180185
</Header>
181186

182187

183-
<ContentWrapper slimheader>
188+
<ContentWrapper slimheader fieldcount={panel === Tabs[1] ? 4 : 3}>
184189
<Subheader>
185190
{panel === Tabs[0] && <SketchSearchbar />}
186191
{panel === Tabs[1] && <CollectionSearchbar />}

0 commit comments

Comments
 (0)