Skip to content

Commit 28356a9

Browse files
committed
remove view column from asset list, add when clicking on asset row, opens asset in new tab
1 parent 3d2a7be commit 28356a9

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

client/modules/IDE/components/AssetList.jsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,21 @@ class AssetList extends React.Component {
5656
<table className="asset-table">
5757
<thead>
5858
<tr>
59-
<th>Name</th>
60-
<th>Size</th>
61-
<th>View</th>
62-
<th>Sketch</th>
59+
<th scope="col">Name</th>
60+
<th scope="col">Size</th>
61+
<th scope="col">Sketch</th>
6362
</tr>
6463
</thead>
6564
<tbody>
6665
{assetList.map(asset =>
6766
(
6867
<tr className="asset-table__row" key={asset.key}>
69-
<td>{asset.name}</td>
68+
<th scope="row">
69+
<Link to={asset.url} target="_blank">
70+
{asset.name}
71+
</Link>
72+
</th>
7073
<td>{prettyBytes(asset.size)}</td>
71-
<td><Link to={asset.url} target="_blank">View</Link></td>
7274
<td><Link to={`/${username}/sketches/${asset.sketchId}`}>{asset.sketchName}</Link></td>
7375
</tr>
7476
))}

client/styles/components/_asset-list.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
}
2222
}
2323

24-
& th {
24+
.asset-table__row>th:nth-child(1) {
25+
padding-left: #{12 / $base-font-size}rem;
26+
}
27+
28+
& thead th {
2529
padding-top: #{10 / $base-font-size}rem;
2630
padding-bottom: #{15 / $base-font-size}rem;
2731
height: #{32 / $base-font-size}rem;
@@ -32,6 +36,10 @@
3236
background-color: getThemifyVariable('background-color');
3337
}
3438
}
39+
40+
& th {
41+
font-weight: normal;
42+
}
3543
}
3644

3745
.asset-table__row {

0 commit comments

Comments
 (0)