home css fixes, show NOTE if set

feat/vaults
Tomáš Mládek 2021-12-21 12:13:46 +01:00
parent 7d0b23e955
commit fa81c279f7
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 12 additions and 3 deletions

View File

@ -45,8 +45,11 @@
{#each data as root}
<li>
<sl-card class="root">
<Link to="/browse/{root.address}">
<Link class="root-link" to="/browse/{root.address}">
<h1>{root.identify()}</h1>
{#if root.get("NOTE")}
<p>{root.get("NOTE")}</p>
{/if}
</Link>
<div slot="footer">
{root.attr["HAS"]?.length || 0} children
@ -95,6 +98,7 @@
.file-added {
opacity: 0.77;
white-space: nowrap;
text-align: center;
}
}
@ -103,8 +107,9 @@
list-style: none;
padding: 0;
margin: 0 2rem;
display: grid;
grid-template-columns: repeat(5, 1fr);
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
}
@ -112,5 +117,9 @@
width: 100%;
text-align: center;
}
:global(.root-link) {
text-decoration: none;
}
}
</style>