Add rad-cli to clone dropdown

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-02-28 13:51:09 +01:00
parent cd1f5f8f0c
commit 75b2fb672e
3 changed files with 19 additions and 10 deletions
+9
View File
@@ -306,6 +306,15 @@ label.input {
background-color: var(--color-negative);
}
.dropdown {
background-color: var(--color-foreground-background);
margin-top: 0.5rem;
position: absolute;
box-shadow: 16px 16px 32px 32px var(--color-shadow);
z-index: 10;
border-radius: 0.25rem;
}
.error {
color: var(--color-negative) !important;
border-color: var(--color-negative) !important;
-2
View File
@@ -16,9 +16,7 @@
background-color: var(--color-foreground-background);
padding: 0.5rem 0;
margin-top: 0.5rem;
border-radius: 0.25rem;
position: absolute;
box-shadow: 16px 16px 32px 32px var(--color-shadow);
}
.dropdown-item {
cursor: pointer;
+10 -8
View File
@@ -93,12 +93,8 @@
background-color: var(--color-foreground-background-lighter);
}
.dropdown {
background-color: var(--color-foreground-background);
padding: 1rem;
margin-top: 0.5rem;
border-radius: 0.25rem;
display: none;
position: absolute;
}
.clone-dropdown.clone-dropdown-visible {
display: block;
@@ -160,14 +156,20 @@
class:clone-dropdown-visible={dropdownState.clone}
>
<Input
name="clone-url"
name="rad-clone-url"
value="rad clone rad://{seed.git.host}/{utils.parseRadicleId(urn)}"
class="yellow"
clipboard
/>
<label for="rad-clone-url">Use the Radicle CLI to clone this project.</label>
<br />
<Input
name="git-clone-url"
value="https://{seed.git.host}/{utils.parseRadicleId(urn)}.git"
class="yellow"
clipboard
/>
<label for="clone-url"
>Use Git to clone this repository from the URL above.</label
>
<label for="git-clone-url">Use Git to clone this repository from the URL above.</label>
</div>
</span>
{/if}