diff options
author | Eric Bailey <git@esb.lol> | 2024-12-06 16:43:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 22:43:49 +0000 |
commit | d05217e56006499a107b772a8a09c79b383e2e3f (patch) | |
tree | 640d79b7ab45d5ffb5911f32448cd6d738802d86 /src/view/com/composer/text-input | |
parent | 8c68093d24ded438b2b8eab475efd4bed4a8a1d1 (diff) | |
download | voidsky-d05217e56006499a107b772a8a09c79b383e2e3f.tar.zst |
Immediately parse pre-filled links in composer state (#6974)
* Immediately parse pre-filled links in composer state * Add hack to fix PasteInput height bug * Parse out ext links separately from post links
Diffstat (limited to 'src/view/com/composer/text-input')
-rw-r--r-- | src/view/com/composer/text-input/TextInput.tsx | 4 | ||||
-rw-r--r-- | src/view/com/composer/text-input/text-input-util.ts | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx index 96cecb37c..55fd3650f 100644 --- a/src/view/com/composer/text-input/TextInput.tsx +++ b/src/view/com/composer/text-input/TextInput.tsx @@ -257,6 +257,10 @@ export const TextInput = forwardRef(function TextInputImpl( minHeight: 60, includeFontPadding: false, }, + { + borderWidth: 1, + borderColor: 'transparent', + }, ]} {...props}> {textDecorated} diff --git a/src/view/com/composer/text-input/text-input-util.ts b/src/view/com/composer/text-input/text-input-util.ts index cbe8ef6af..7268e10f0 100644 --- a/src/view/com/composer/text-input/text-input-util.ts +++ b/src/view/com/composer/text-input/text-input-util.ts @@ -6,7 +6,7 @@ export type LinkFacetMatch = { } export function suggestLinkCardUri( - mayBePaste: boolean, + suggestLinkImmediately: boolean, nextDetectedUris: Map<string, LinkFacetMatch>, prevDetectedUris: Map<string, LinkFacetMatch>, pastSuggestedUris: Set<string>, @@ -20,8 +20,8 @@ export function suggestLinkCardUri( // Don't suggest already added or already dismissed link cards. continue } - if (mayBePaste) { - // Immediately add the pasted link without waiting to type more. + if (suggestLinkImmediately) { + // Immediately add the pasted or intent-prefilled link without waiting to type more. suggestedUris.add(uri) continue } |