mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Redesign node view and use it as the landing-page
This commit is contained in:
@@ -53,7 +53,6 @@
|
||||
gap: 0.5rem;
|
||||
justify-content: center;
|
||||
z-index: 20;
|
||||
bottom: 1.5rem;
|
||||
background: var(--color-fill-ghost);
|
||||
color: var(--color-fill-gray);
|
||||
border: 1px solid var(--color-border-default);
|
||||
@@ -101,7 +100,7 @@
|
||||
</div>
|
||||
|
||||
{#if visible}
|
||||
<div style:position="absolute">
|
||||
<div style:position="absolute" style:top="-2rem">
|
||||
<div class="popover">
|
||||
<IconSmall name={icon} />
|
||||
{tooltip}
|
||||
|
||||
@@ -10,19 +10,31 @@
|
||||
|
||||
<style>
|
||||
.section {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.5rem 0;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
.text {
|
||||
padding-right: 2rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="section" style:padding-top="0.5rem">
|
||||
Policy:
|
||||
<span class="txt-bold">{capitalize(policy)}</span>
|
||||
</div>
|
||||
<div class="txt-missing text">
|
||||
{#if policy === "allow"}
|
||||
All discovered repositories will be seeded.
|
||||
{:else if policy === "block"}
|
||||
Only selected repositories will be seeded.
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if policy === "allow"}
|
||||
<div class="section">
|
||||
<div class="section" style:padding-top="0.5rem">
|
||||
Scope:
|
||||
<span class="txt-bold">{capitalize(scope)}</span>
|
||||
</div>
|
||||
<div class="txt-missing">
|
||||
<div class="txt-missing text">
|
||||
{#if scope === "all"}
|
||||
All changes in seeded repositories, made by any peer, will be synced.
|
||||
{:else if scope === "followed"}
|
||||
@@ -30,15 +42,3 @@
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="section">
|
||||
Policy:
|
||||
<span class="txt-bold">{capitalize(policy)}</span>
|
||||
</div>
|
||||
<div class="txt-missing">
|
||||
{#if policy === "allow"}
|
||||
All discovered repositories will get seeded.
|
||||
{:else if policy === "block"}
|
||||
Only repositories marked as such will get seeded.
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user