about summary refs log tree commit diff
path: root/src/lib/constants.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-10-05 05:58:04 -0500
committerGitHub <noreply@github.com>2024-10-05 19:58:04 +0900
commit76d63f9967a9a59193652487d2a10f41eac22268 (patch)
treee70fcda6005d4501f87309d70fa574d24f51c96c /src/lib/constants.ts
parent6dfd57e6218eb32fcf700f1fbbd0339705940679 (diff)
downloadvoidsky-76d63f9967a9a59193652487d2a10f41eac22268.tar.zst
Add alt text limit to image dialog (#5611)
* Add alt text limit to image dialog

* GIF alt text too

* Fix

* tweaks, save alt on dialog dismiss

* simplify close behavior

* use state in gif alt

* state

---------

Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'src/lib/constants.ts')
-rw-r--r--src/lib/constants.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index 9bf1fb35e..0edc9f2ad 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -50,7 +50,7 @@ export const MAX_DM_GRAPHEME_LENGTH = 1000
 
 // Recommended is 100 per: https://www.w3.org/WAI/GL/WCAG20/tests/test3.html
 // but increasing limit per user feedback
-export const MAX_ALT_TEXT = 1000
+export const MAX_ALT_TEXT = 2000
 
 export function IS_TEST_USER(handle?: string) {
   return handle && handle?.endsWith('.test')