Skip to content

Commit 9c25daa

Browse files
committed
👌 update card fields alignment
1 parent 4a1eb0e commit 9c25daa

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ class CollectionListRowBase extends React.Component {
214214
</span>
215215
</th>
216216
{(!mobile) && <td>{format(new Date(collection.createdAt), 'MMM D, YYYY')}</td>}
217-
<td>{formatDateCell(collection.updatedAt)}</td>
218-
<td>{(collection.items || []).length}</td>
217+
<td>{mobile && 'Updated: '}{formatDateCell(collection.updatedAt)}</td>
218+
<td>{mobile && '# sketches: '}{(collection.items || []).length}</td>
219219
<td className="sketch-list__dropdown-column">
220220
{this.renderActions()}
221221
</td>

client/modules/IDE/components/SketchList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ class SketchListRowBase extends React.Component {
293293
<th scope="row">
294294
{name}
295295
</th>
296-
<td>{formatDateCell(sketch.createdAt, mobile)}</td>
297-
<td>{formatDateCell(sketch.updatedAt, mobile)}</td>
296+
<td>{mobile && 'Created: '}{formatDateCell(sketch.createdAt, mobile)}</td>
297+
<td>{mobile && 'Updated: '}{formatDateCell(sketch.updatedAt, mobile)}</td>
298298
{this.renderDropdown()}
299299
</tr>
300300
</React.Fragment>);

client/modules/Mobile/MobileDashboardView.jsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,13 @@ const ContentWrapper = styled(Content)`
5050
color: ${prop('primaryTextColor')}
5151
}
5252
53-
thead th svg { margin-left: ${remSize(8)}}
53+
tbody td { justify-self: center; padding-left: ${remSize(12)}}
5454
55-
tbody td:nth-child(2) { grid-column-start: 2 }
56-
tbody td:last-child { justify-self: end; text-align: end; }
55+
thead th svg { margin-left: ${remSize(8)} }
56+
57+
58+
tbody td:last-child { justify-self: end; text-align: end; };
59+
.sketches-table .sketch-list__dropdown-column { min-width: unset };
5760
5861
tbody { height: ${remSize(48)}; }
5962
@@ -68,8 +71,8 @@ const ContentWrapper = styled(Content)`
6871
tr {
6972
align-self: start;
7073
display: grid;
71-
grid-template-columns: repeat(3,5fr) 1fr;
72-
grid-template-areas: "name name name name" "none content content content";
74+
grid-template-columns: 5fr 5fr 2fr;
75+
grid-template-areas: "name name name" "content content content";
7376
7477
border-radius: ${remSize(4)}; padding: ${remSize(8)};
7578
box-shadow: 0 0 18px 0 ${prop('shadowColor')};

0 commit comments

Comments
 (0)