|
|
|
@ -364,12 +364,12 @@ |
|
|
|
<div class="w-full space-y-4"> |
|
|
|
<div class="w-full space-y-4"> |
|
|
|
<div class="flex flex-wrap gap-2"> |
|
|
|
<div class="flex flex-wrap gap-2"> |
|
|
|
{#each markupButtons as button} |
|
|
|
{#each markupButtons as button} |
|
|
|
<Button size="xs" on:click={button.action}>{button.label}</Button> |
|
|
|
<Button size="xs" onclick={button.action}>{button.label}</Button> |
|
|
|
{/each} |
|
|
|
{/each} |
|
|
|
<Button size="xs" color="alternative" on:click={removeFormatting} |
|
|
|
<Button size="xs" color="alternative" onclick={removeFormatting} |
|
|
|
>Remove Formatting</Button |
|
|
|
>Remove Formatting</Button |
|
|
|
> |
|
|
|
> |
|
|
|
<Button size="xs" color="alternative" on:click={clearForm}>Clear</Button> |
|
|
|
<Button size="xs" color="alternative" onclick={clearForm}>Clear</Button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Mention Modal --> |
|
|
|
<!-- Mention Modal --> |
|
|
|
@ -519,12 +519,12 @@ |
|
|
|
class="mb-4" |
|
|
|
class="mb-4" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div class="flex justify-end gap-2"> |
|
|
|
<div class="flex justify-end gap-2"> |
|
|
|
<Button size="xs" color="primary" on:click={insertWikilink}>Insert</Button |
|
|
|
<Button size="xs" color="primary" onclick={insertWikilink}>Insert</Button |
|
|
|
> |
|
|
|
> |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
size="xs" |
|
|
|
size="xs" |
|
|
|
color="alternative" |
|
|
|
color="alternative" |
|
|
|
on:click={() => { |
|
|
|
onclick={() => { |
|
|
|
showWikilinkModal = false; |
|
|
|
showWikilinkModal = false; |
|
|
|
}}>Cancel</Button |
|
|
|
}}>Cancel</Button |
|
|
|
> |
|
|
|
> |
|
|
|
@ -552,7 +552,7 @@ |
|
|
|
<Alert color="red" dismissable> |
|
|
|
<Alert color="red" dismissable> |
|
|
|
{error} |
|
|
|
{error} |
|
|
|
{#if showOtherRelays} |
|
|
|
{#if showOtherRelays} |
|
|
|
<Button size="xs" class="mt-2" on:click={() => handleSubmit(true)} |
|
|
|
<Button size="xs" class="mt-2" onclick={() => handleSubmit(true)} |
|
|
|
>Try Other Relays</Button |
|
|
|
>Try Other Relays</Button |
|
|
|
> |
|
|
|
> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
@ -560,7 +560,7 @@ |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
size="xs" |
|
|
|
size="xs" |
|
|
|
class="mt-2" |
|
|
|
class="mt-2" |
|
|
|
on:click={() => handleSubmit(false, true)}>Try Fallback Relays</Button |
|
|
|
onclick={() => handleSubmit(false, true)}>Try Fallback Relays</Button |
|
|
|
> |
|
|
|
> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
</Alert> |
|
|
|
</Alert> |
|
|
|
@ -604,7 +604,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
on:click={() => handleSubmit()} |
|
|
|
onclick={() => handleSubmit()} |
|
|
|
disabled={isSubmitting || !content.trim() || !$userPubkey} |
|
|
|
disabled={isSubmitting || !content.trim() || !$userPubkey} |
|
|
|
class="w-full md:w-auto" |
|
|
|
class="w-full md:w-auto" |
|
|
|
> |
|
|
|
> |
|
|
|
|