Skip to content

Commit d3a620e

Browse files
committed
💄 limit width of right-aligned cells
1 parent f5f0248 commit d3a620e

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

client/modules/IDE/components/SketchList.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ import ArrowDownIcon from '../../../images/sort-arrow-down.svg';
2323
import DownFilledTriangleIcon from '../../../images/down-filled-triangle.svg';
2424

2525

26-
const formatDateCell = (date, mobile = false) =>
27-
format(new Date(date), mobile ? 'MMM D, YYYY' : 'MMM D, YYYY h:mm A')
28-
.replace(', ', mobile ? '\n' : ', ');
26+
const formatDateCell = (date, mobile = false) => format(new Date(date), mobile ? 'MMM D, YYYY' : 'MMM D, YYYY h:mm A');
2927

3028
class SketchListRowBase extends React.Component {
3129
constructor(props) {

client/modules/Mobile/MobileDashboardView.jsx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,40 @@ import Button from '../../common/Button';
2020
const EXAMPLE_USERNAME = 'p5';
2121

2222
const ContentWrapper = styled(Content)`
23-
td,thead button {
23+
table {
24+
table-layout: fixed;
25+
/* white-space: nowrap; */
26+
}
27+
28+
td ,thead button {
2429
font-size: ${remSize(10)};
2530
padding-left: 0;
2631
text-align: left;
2732
};
2833
2934
thead th { padding-left: 0; }
3035
31-
tbody th {
36+
thead th:not(:first-child) {
37+
width: 48px !important;
38+
}
39+
40+
.sketches-table__row th {
3241
font-size: ${remSize(12)};
33-
/* font-weight: bold; */
3442
width: 100%;
35-
max-width: 70%;
43+
padding-right: ${remSize(12)}
3644
};
3745
46+
.sketches-table__row td {
47+
text-align: center;
48+
width: ${remSize(24)} !important;
49+
}
50+
3851
.sketch-list__sort-button { padding: 0 }
3952
.sketches-table__row {
4053
height: ${remSize(48)};
4154
}
4255
4356
.sketches-table-container { padding-bottom: ${remSize(160)} }
44-
45-
/* td.sketch-list__dropdown-column { min-width: unset; } */
4657
`;
4758

4859
const FooterTab = styled(Link)`

0 commit comments

Comments
 (0)