CSS
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
{@const status = statusOf(node)}
|
||||
<tr class:folder={node.isFolder}>
|
||||
<td class="name" style:--depth={depth}>
|
||||
<div class="name-line">
|
||||
{#if node.isFolder}
|
||||
<button
|
||||
type="button"
|
||||
@@ -94,6 +95,7 @@
|
||||
{#if node.problems > 0}
|
||||
<span class="problems">{node.problems} failed inside</span>
|
||||
{/if}
|
||||
</div>
|
||||
</td>
|
||||
<td><Badge {...status} /></td>
|
||||
<td class="small"><TimeAgo date={node.isFolder ? null : node.modifiedAt} empty="" /></td
|
||||
@@ -118,12 +120,23 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Every row is one line, so cells centre on each other rather than sharing a baseline
|
||||
(the arrow and icons have none). */
|
||||
td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* The cell stays a table cell so its height and border match the row; the flex layout
|
||||
lives on the line inside it. */
|
||||
.name {
|
||||
padding-left: calc(0.5rem + var(--depth) * 1.25rem);
|
||||
min-width: 18rem;
|
||||
}
|
||||
|
||||
.name-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
padding-left: calc(0.5rem + var(--depth) * 1.25rem);
|
||||
min-width: 18rem;
|
||||
}
|
||||
|
||||
.folder .name {
|
||||
|
||||
@@ -243,7 +243,8 @@ a {
|
||||
.register td {
|
||||
padding: 0.55rem 0.75rem;
|
||||
border-bottom: 1px solid var(--rule);
|
||||
vertical-align: top;
|
||||
/* First lines line up across cells, whatever their size (badges, small text, wrapped text). */
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.register tr:last-child td {
|
||||
|
||||
Reference in New Issue
Block a user