this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Try focus on search input again

+25 -21
+20 -20
src/locales/en.po
··· 97 97 #: src/components/account-info.jsx:421 98 98 #: src/components/account-info.jsx:778 99 99 #: src/pages/account-statuses.jsx:484 100 - #: src/pages/search.jsx:323 101 - #: src/pages/search.jsx:470 100 + #: src/pages/search.jsx:327 101 + #: src/pages/search.jsx:474 102 102 msgid "Posts" 103 103 msgstr "" 104 104 ··· 956 956 #: src/components/generic-accounts.jsx:145 957 957 #: src/components/notification.jsx:438 958 958 #: src/pages/accounts.jsx:41 959 - #: src/pages/search.jsx:313 960 - #: src/pages/search.jsx:346 959 + #: src/pages/search.jsx:317 960 + #: src/pages/search.jsx:350 961 961 msgid "Accounts" 962 962 msgstr "" 963 963 ··· 965 965 #: src/components/timeline.jsx:519 966 966 #: src/pages/list.jsx:293 967 967 #: src/pages/notifications.jsx:848 968 - #: src/pages/search.jsx:540 968 + #: src/pages/search.jsx:544 969 969 #: src/pages/status.jsx:1332 970 970 msgid "Show more…" 971 971 msgstr "" 972 972 973 973 #: src/components/generic-accounts.jsx:210 974 974 #: src/components/timeline.jsx:524 975 - #: src/pages/search.jsx:545 975 + #: src/pages/search.jsx:549 976 976 msgid "The end." 977 977 msgstr "" 978 978 ··· 1079 1079 #: src/components/shortcuts-settings.jsx:52 1080 1080 #: src/components/shortcuts-settings.jsx:179 1081 1081 #: src/pages/search.jsx:45 1082 - #: src/pages/search.jsx:295 1082 + #: src/pages/search.jsx:299 1083 1083 msgid "Search" 1084 1084 msgstr "" 1085 1085 ··· 2697 2697 2698 2698 #: src/pages/catchup.jsx:1316 2699 2699 #: src/pages/mentions.jsx:147 2700 - #: src/pages/search.jsx:308 2700 + #: src/pages/search.jsx:312 2701 2701 msgid "All" 2702 2702 msgstr "" 2703 2703 ··· 3301 3301 msgid "Search: {q}" 3302 3302 msgstr "" 3303 3303 3304 - #: src/pages/search.jsx:318 3305 - #: src/pages/search.jsx:400 3304 + #: src/pages/search.jsx:322 3305 + #: src/pages/search.jsx:404 3306 3306 msgid "Hashtags" 3307 3307 msgstr "" 3308 3308 3309 - #: src/pages/search.jsx:350 3310 - #: src/pages/search.jsx:404 3311 - #: src/pages/search.jsx:474 3309 + #: src/pages/search.jsx:354 3310 + #: src/pages/search.jsx:408 3311 + #: src/pages/search.jsx:478 3312 3312 msgid "See more" 3313 3313 msgstr "" 3314 3314 3315 - #: src/pages/search.jsx:376 3315 + #: src/pages/search.jsx:380 3316 3316 msgid "See more accounts" 3317 3317 msgstr "" 3318 3318 3319 - #: src/pages/search.jsx:390 3319 + #: src/pages/search.jsx:394 3320 3320 msgid "No accounts found." 3321 3321 msgstr "" 3322 3322 3323 - #: src/pages/search.jsx:446 3323 + #: src/pages/search.jsx:450 3324 3324 msgid "See more hashtags" 3325 3325 msgstr "" 3326 3326 3327 - #: src/pages/search.jsx:460 3327 + #: src/pages/search.jsx:464 3328 3328 msgid "No hashtags found." 3329 3329 msgstr "" 3330 3330 3331 - #: src/pages/search.jsx:504 3331 + #: src/pages/search.jsx:508 3332 3332 msgid "See more posts" 3333 3333 msgstr "" 3334 3334 3335 - #: src/pages/search.jsx:518 3335 + #: src/pages/search.jsx:522 3336 3336 msgid "No posts found." 3337 3337 msgstr "" 3338 3338 3339 - #: src/pages/search.jsx:562 3339 + #: src/pages/search.jsx:566 3340 3340 msgid "Enter your search term or paste a URL above to get started." 3341 3341 msgstr "" 3342 3342
+5 -1
src/pages/search.jsx
··· 184 184 }); 185 185 186 186 useEffect(() => { 187 + let timer; 187 188 searchFormRef.current?.setValue?.(q || ''); 188 189 if (q) { 189 190 loadResults(true); 190 191 } else { 191 - searchFormRef.current?.focus?.(); 192 + timer = setTimeout(() => { 193 + searchFormRef.current?.focus?.(); 194 + }, 150); // Right after focusDeck runs 192 195 } 196 + return () => clearTimeout(timer); 193 197 }, [q, type, instance]); 194 198 195 199 useHotkeys(