Skip to content

Commit e41595b

Browse files
authored
ui: improve table view styling (#233)
1 parent 1a98b3f commit e41595b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/view/table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
<table class="table-view" style={{gridTemplateColumns: `repeat(${state.fields.size+1}, 1fr)`}}>
1818
<thead>
1919
<tr>
20-
<th></th>
20+
<th>Title</th>
2121
{[...state.fields].map(f => <th>{f}</th>)}
2222
</tr>
2323
</thead>

web/static/app/main.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,22 @@ svg.node-bullet circle#node-collapsed-handle {
295295

296296
.table-view {
297297
display: grid;
298+
margin-bottom: calc(var(--padding)/4);
298299
}
299300
.table-view th {
301+
border-bottom: solid 1px var(--color-outline-secondary);
302+
margin-bottom: calc(var(--padding)/2);
303+
padding-bottom: calc(var(--padding)/2);
300304
text-align: left;
301305
}
302306
.table-view thead,
303307
.table-view tbody,
304308
.table-view tr {
305309
display: contents;
306310
}
311+
.table-view thead th:first-child {
312+
padding-left: 24px;
313+
}
307314

308315
/*------------NOTICES------------*/
309316
.notice {

0 commit comments

Comments
 (0)