@@ -9,7 +9,7 @@ import Header from '../../components/mobile/Header';
9
9
import IconButton from '../../components/mobile/IconButton' ;
10
10
import { ExitIcon , MoreIcon } from '../../common/icons' ;
11
11
import Footer from '../../components/mobile/Footer' ;
12
- import { remSize } from '../../theme' ;
12
+ import { remSize , prop } from '../../theme' ;
13
13
import SketchList from '../IDE/components/SketchList' ;
14
14
import CollectionList from '../IDE/components/CollectionList' ;
15
15
import AssetList from '../IDE/components/AssetList' ;
@@ -26,7 +26,6 @@ const EXAMPLE_USERNAME = 'p5';
26
26
const ContentWrapper = styled ( Content ) `
27
27
table {
28
28
table-layout: fixed;
29
- /* white-space: nowrap; */
30
29
}
31
30
32
31
td ,thead button {
@@ -35,30 +34,41 @@ const ContentWrapper = styled(Content)`
35
34
text-align: left;
36
35
};
37
36
38
- thead th { padding-left: 0; }
39
-
40
- thead th:not(:first-child), tbody td {
41
- width: ${ remSize ( 54 ) } ;
42
- }
43
-
44
- tbody th { font-weight: bold; };
45
37
46
38
tbody th {
47
- font-size: ${ remSize ( 12 ) } ;
39
+ font-size: ${ remSize ( 16 ) } ;
48
40
width: 100%;
49
- padding-right: ${ remSize ( 12 ) }
41
+ padding-right: ${ remSize ( 12 ) } ;
42
+ font-weight: bold;
43
+ display: flex;
44
+ grid-area: name;
50
45
};
51
46
52
- tbody td {
53
- text-align: center;
47
+ tbody td, thead th {
48
+ justify-self: stretch;
49
+ align-self: flex-end;
54
50
}
55
51
56
- .sketch-list__sort-button { padding: 0 }
52
+ tbody td:nth-child(2) { grid-column-start: 2 }
53
+ tbody td:last-child { justify-self: end }
54
+
55
+ /* .sketch-list__sort-button { padding: 0 } */
57
56
tbody {
58
57
height: ${ remSize ( 48 ) } ;
59
58
}
60
59
61
60
.sketches-table-container { padding-bottom: ${ remSize ( 160 ) } }
61
+ .sketches-table__row { background: white !important; height: auto }
62
+
63
+ tr {
64
+ align-self: start;
65
+ display: grid;
66
+ grid-template-columns: repeat(4,1fr);
67
+ grid-template-areas: "name name name name" "none content content content";
68
+
69
+ border-radius: ${ remSize ( 4 ) } ; padding: ${ remSize ( 8 ) } ;
70
+ box-shadow: 0 0 18px 0 ${ prop ( 'shadowColor' ) } ;
71
+ };
62
72
` ;
63
73
64
74
const Subheader = styled . div `
0 commit comments