Skip to content

Commit

Permalink
ui: improve table view styling (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcaTech committed Jul 4, 2023
1 parent 1a98b3f commit e41595b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
<table class="table-view" style={{gridTemplateColumns: `repeat(${state.fields.size+1}, 1fr)`}}>
<thead>
<tr>
<th></th>
<th>Title</th>
{[...state.fields].map(f => <th>{f}</th>)}
</tr>
</thead>
Expand Down
7 changes: 7 additions & 0 deletions web/static/app/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,22 @@ svg.node-bullet circle#node-collapsed-handle {

.table-view {
display: grid;
margin-bottom: calc(var(--padding)/4);
}
.table-view th {
border-bottom: solid 1px var(--color-outline-secondary);
margin-bottom: calc(var(--padding)/2);
padding-bottom: calc(var(--padding)/2);
text-align: left;
}
.table-view thead,
.table-view tbody,
.table-view tr {
display: contents;
}
.table-view thead th:first-child {
padding-left: 24px;
}

/*------------NOTICES------------*/
.notice {
Expand Down

0 comments on commit e41595b

Please sign in to comment.