about summary refs log tree commit diff
path: root/src/view/com/composer/text-input/hooks
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-11-21 22:32:32 +0000
committerGitHub <noreply@github.com>2024-11-21 22:32:32 +0000
commit9f1e648686498ad6ec68a7c4487b1090f8e74f89 (patch)
treea552bb53ec8bd63453d060f805067354874aa1b5 /src/view/com/composer/text-input/hooks
parentf67e00a85c61ae8be65afda3fe75e7eaac1c2ffa (diff)
downloadvoidsky-9f1e648686498ad6ec68a7c4487b1090f8e74f89.tar.zst
Fix overflow issue on iOS autocomplete, among other things (#6611)
* stop using ref in render

* fix display name fallback on web

* use unicode ellipsis for useGrapheme

* fix overflow issue

* sanitize handle/displayname on web
Diffstat (limited to 'src/view/com/composer/text-input/hooks')
-rw-r--r--src/view/com/composer/text-input/hooks/useGrapheme.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/composer/text-input/hooks/useGrapheme.tsx b/src/view/com/composer/text-input/hooks/useGrapheme.tsx
index 01b5b9698..aa375ff47 100644
--- a/src/view/com/composer/text-input/hooks/useGrapheme.tsx
+++ b/src/view/com/composer/text-input/hooks/useGrapheme.tsx
@@ -13,7 +13,7 @@ export const useGrapheme = () => {
 
         if (graphemes.length > length) {
           remainingCharacters = 0
-          name = `${graphemes.slice(0, length).join('')}...`
+          name = `${graphemes.slice(0, length).join('')}…`
         } else {
           remainingCharacters = length - graphemes.length
           name = graphemes.join('')