mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 10:57:04 +00:00
Fix inline input
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
const showSettingsMenu = () => pushModal(MenuSettings)
|
const showSettingsMenu = () => pushModal(MenuSettings)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="relative hidden w-14 flex-shrink-0 bg-base-200 pt-4 md:block">
|
<div class="relative z-nav hidden w-14 flex-shrink-0 bg-base-200 pt-4 md:block">
|
||||||
<div class="flex h-full flex-col justify-between">
|
<div class="flex h-full flex-col justify-between">
|
||||||
<div>
|
<div>
|
||||||
{#if PLATFORM_RELAY}
|
{#if PLATFORM_RELAY}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="grid grid-cols-1 gap-2 sm:grid-cols-2 {$$props.class}">
|
<div class="grid grid-cols-1 gap-2 lg:grid-cols-2 {$$props.class}">
|
||||||
<label class="flex items-center gap-2 font-bold">
|
<label class="flex items-center gap-2 font-bold">
|
||||||
<slot name="label" />
|
<slot name="label" />
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ import type {Node as ProsemirrorNode} from "@tiptap/pm/model"
|
|||||||
import type {MarkdownSerializerState} from "prosemirror-markdown"
|
import type {MarkdownSerializerState} from "prosemirror-markdown"
|
||||||
import {createPasteRuleMatch} from "./util"
|
import {createPasteRuleMatch} from "./util"
|
||||||
|
|
||||||
export const LINK_REGEX =
|
export const LINK_REGEX = /([a-z\+:]{2,30}:\/\/)?[^<>\(\)\s]+\.[a-z]{2,6}[^\s<>"'\.!?,:\)\(]*/gi
|
||||||
/([a-z\+:]{2,30}:\/\/)?[^<>\(\)\s]+\.[a-z]{2,6}[^\s]*[^<>"'\.!?,:\s\)\(]*/gi
|
|
||||||
|
|
||||||
export interface LinkAttributes {
|
export interface LinkAttributes {
|
||||||
url: string
|
url: string
|
||||||
|
|||||||
@@ -52,9 +52,13 @@
|
|||||||
<div class="card2 bg-alt col-4 shadow-xl">
|
<div class="card2 bg-alt col-4 shadow-xl">
|
||||||
<FieldInline>
|
<FieldInline>
|
||||||
<p slot="label">Public Key</p>
|
<p slot="label">Public Key</p>
|
||||||
<label class="input input-bordered flex w-full items-center gap-2" slot="input">
|
<label
|
||||||
<Icon icon="link-round" />
|
class="input input-bordered flex w-full items-center justify-between gap-2"
|
||||||
<input class="ellipsize" value={$session?.pubkey} />
|
slot="input">
|
||||||
|
<div class="row-2 flex-grow items-center">
|
||||||
|
<Icon icon="link-round" />
|
||||||
|
<input class="ellipsize flex-grow" value={$session?.pubkey} />
|
||||||
|
</div>
|
||||||
<Button class="flex items-center" on:click={copyNpub}>
|
<Button class="flex items-center" on:click={copyNpub}>
|
||||||
<Icon icon="copy" />
|
<Icon icon="copy" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user