De-emphasize link meta
This commit is contained in:
parent
0a9d3cfb49
commit
ce4ecedf7e
1 changed files with 44 additions and 39 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {writable} from "svelte/store"
|
import {writable} from "svelte/store"
|
||||||
|
import {slide} from "@lib/transition"
|
||||||
import AltArrowLeft from "@assets/icons/alt-arrow-left.svg?dataurl"
|
import AltArrowLeft from "@assets/icons/alt-arrow-left.svg?dataurl"
|
||||||
import GallerySend from "@assets/icons/gallery-send.svg?dataurl"
|
import GallerySend from "@assets/icons/gallery-send.svg?dataurl"
|
||||||
import Spinner from "@lib/components/Spinner.svelte"
|
import Spinner from "@lib/components/Spinner.svelte"
|
||||||
|
|
@ -83,45 +84,6 @@
|
||||||
<ModalTitle>{heading}</ModalTitle>
|
<ModalTitle>{heading}</ModalTitle>
|
||||||
<ModalSubtitle>on <RelayName {url} class="text-primary" /></ModalSubtitle>
|
<ModalSubtitle>on <RelayName {url} class="text-primary" /></ModalSubtitle>
|
||||||
</ModalHeader>
|
</ModalHeader>
|
||||||
<Field>
|
|
||||||
{#snippet label()}
|
|
||||||
Title
|
|
||||||
{/snippet}
|
|
||||||
{#snippet input()}
|
|
||||||
<input bind:value={title} class="input w-full" placeholder="Optional title" />
|
|
||||||
{/snippet}
|
|
||||||
</Field>
|
|
||||||
<Field>
|
|
||||||
{#snippet label()}
|
|
||||||
Description
|
|
||||||
{/snippet}
|
|
||||||
{#snippet input()}
|
|
||||||
<div class="relative z-feature flex gap-2">
|
|
||||||
<div class="input-editor grow overflow-hidden">
|
|
||||||
<EditorContent {editor} />
|
|
||||||
</div>
|
|
||||||
<Button
|
|
||||||
data-tip="Add an image"
|
|
||||||
class="button button-neutral button-input tip"
|
|
||||||
onclick={selectFiles}
|
|
||||||
disabled={loading}>
|
|
||||||
{#if $uploading}
|
|
||||||
<Spinner size="xs" />
|
|
||||||
{:else}
|
|
||||||
<Icon icon={GallerySend} />
|
|
||||||
{/if}
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
{/snippet}
|
|
||||||
</Field>
|
|
||||||
<Field>
|
|
||||||
{#snippet label()}
|
|
||||||
Topics
|
|
||||||
{/snippet}
|
|
||||||
{#snippet input()}
|
|
||||||
<StringMultiInput bind:value={topics} placeholder="Add a topic..." />
|
|
||||||
{/snippet}
|
|
||||||
</Field>
|
|
||||||
<Field>
|
<Field>
|
||||||
{#snippet label()}
|
{#snippet label()}
|
||||||
Link
|
Link
|
||||||
|
|
@ -133,6 +95,49 @@
|
||||||
<input bind:value class="input w-full" placeholder="URL or nevent..." />
|
<input bind:value class="input w-full" placeholder="URL or nevent..." />
|
||||||
{/snippet}
|
{/snippet}
|
||||||
</Field>
|
</Field>
|
||||||
|
{#if value.trim()}
|
||||||
|
<div transition:slide class="card card-sm flex flex-col gap-4 opacity-75">
|
||||||
|
<Field>
|
||||||
|
{#snippet label()}
|
||||||
|
Title
|
||||||
|
{/snippet}
|
||||||
|
{#snippet input()}
|
||||||
|
<input bind:value={title} class="input w-full" placeholder="Optional title" />
|
||||||
|
{/snippet}
|
||||||
|
</Field>
|
||||||
|
<Field>
|
||||||
|
{#snippet label()}
|
||||||
|
Description
|
||||||
|
{/snippet}
|
||||||
|
{#snippet input()}
|
||||||
|
<div class="relative z-feature flex gap-2">
|
||||||
|
<div class="input-editor grow overflow-hidden">
|
||||||
|
<EditorContent {editor} />
|
||||||
|
</div>
|
||||||
|
<Button
|
||||||
|
data-tip="Add an image"
|
||||||
|
class="button button-neutral button-input tip"
|
||||||
|
onclick={selectFiles}
|
||||||
|
disabled={loading}>
|
||||||
|
{#if $uploading}
|
||||||
|
<Spinner size="xs" />
|
||||||
|
{:else}
|
||||||
|
<Icon icon={GallerySend} />
|
||||||
|
{/if}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
{/snippet}
|
||||||
|
</Field>
|
||||||
|
<Field>
|
||||||
|
{#snippet label()}
|
||||||
|
Topics
|
||||||
|
{/snippet}
|
||||||
|
{#snippet input()}
|
||||||
|
<StringMultiInput bind:value={topics} placeholder="Add a topic..." />
|
||||||
|
{/snippet}
|
||||||
|
</Field>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
<ModalFooter>
|
<ModalFooter>
|
||||||
<Button class="button button-link" onclick={back}>
|
<Button class="button button-link" onclick={back}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue