diff options
author | dan <dan.abramov@gmail.com> | 2024-11-01 03:45:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-01 03:45:55 +0000 |
commit | 7a08d61d889328ff5e3b8ba61faab71a5568df2f (patch) | |
tree | 105fd6ef552581048349ca1e756b71daebf7fc20 /src/lib | |
parent | 01c9ac0e13e959bae9ab221cd0a724a70c222772 (diff) | |
download | voidsky-7a08d61d889328ff5e3b8ba61faab71a5568df2f.tar.zst |
Thread composer UI (#6050)
* Basic adding of posts * Switch active post on focus * Conditionally show plus button * Insert posts midthread * Track active/inactive post * Delete posts in a thread * Focus after deletion * Tweak empty post detection * Mix height for active only * Move toolbar with post on web * Fix footer positioning * Post All button * Fix reply to positioning * Improve memoization * Improve memoization for clearVideo * Remove unnecessary argument * Add some manual memoization to fix re-renders * Scroll to bottom on add new * Fix opacity on Android * Add backdrop * Fix videos * Check alt for video too * Clear pending publish on error * Fork alt message by type * Separate placeholder for next posts * Limit hitslop to avoid clashes
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/constants.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 1a13304fa..34847b704 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -95,6 +95,7 @@ export const HITSLOP_10 = createHitslop(10) export const HITSLOP_20 = createHitslop(20) export const HITSLOP_30 = createHitslop(30) export const POST_CTRL_HITSLOP = {top: 5, bottom: 10, left: 10, right: 10} +export const LANG_DROPDOWN_HITSLOP = {top: 10, bottom: 10, left: 4, right: 4} export const BACK_HITSLOP = HITSLOP_30 export const MAX_POST_LINES = 25 |