Commit Graph

5106 Commits

Author SHA1 Message Date
Dan Abramov e4aa00e140 Divide free space proportionally 2024-12-01 18:53:44 +00:00
Dan Abramov e291ae008e Scroll into view on tap if needed 2024-11-30 20:20:14 +00:00
Dan Abramov acc52c14d3 Fix positioning 2024-11-30 19:56:38 +00:00
Dan Abramov 5a020a8e30 Factor out a helper 2024-11-30 19:50:19 +00:00
Dan Abramov 6b01b95596 Scroll to initial 2024-11-30 19:46:21 +00:00
Dan Abramov 11d14be690 Fast path for initial styles 2024-11-30 19:10:06 +00:00
Dan Abramov b38ea9d6cc Fix profile and types 2024-11-30 18:59:57 +00:00
Dan Abramov 7a6d4ff91c Keep layouts in a shared value 2024-11-30 18:47:08 +00:00
Dan Abramov c06eb2b2b1 Respect initial page 2024-11-30 18:15:15 +00:00
Dan Abramov f2522aafdd Animate header color 2024-11-30 18:04:03 +00:00
Dan Abramov 97273be3a6 Add TODO 2024-11-30 18:04:03 +00:00
Dan Abramov 56cbaf5067 Fix an infinite swipe loop 2024-11-30 18:04:03 +00:00
Dan Abramov 24a24753bc Interpolate the indicator 2024-11-30 18:04:03 +00:00
Dan Abramov 9557eee808 Simplify the implementation
I was trying to be too smart and this was causing the current page event to lag behind if you continuously drag. Better to let the library do its job.
2024-11-30 18:04:03 +00:00
Dan Abramov 5e098fa609 Clarify more hacks 2024-11-30 18:04:03 +00:00
Dan Abramov 5aaa0d7dc8 Implement all interactions 2024-11-30 18:04:03 +00:00
Dan Abramov 505e3adc77 Sync scroll to swipe properly 2024-11-30 18:04:03 +00:00
Dan Abramov 6d134229d6 Extract TabBarItem 2024-11-30 18:04:03 +00:00
Dan Abramov 020d71a741 Sync scroll to swipe 2024-11-30 18:04:03 +00:00
Dan Abramov a26a84eb60 Track offset relative to current page 2024-11-30 18:04:03 +00:00
Dan Abramov 7732a7b8f3 Track pager state change in a worklet 2024-11-30 18:04:03 +00:00
Dan Abramov dc89c75e18 Track pager drag gesture in a worklet 2024-11-30 18:04:03 +00:00
Dan Abramov 6acbe15f54 Remove tab bar autoscroll
This will be replaced by a different mechanism.
2024-11-30 18:04:03 +00:00
Dan Abramov 82b227e64a Use regular ScrollView on native
The Draggable thing was needed for web-only behavior so we can drop it in the native fork.
2024-11-30 18:03:07 +00:00
Dan Abramov 247c6f452d Prune more dead code from the native version
We'll have to revisit this when adding tablet support but for now I'd prefer to remove a codepath that is not being tested or ever run.
2024-11-30 18:03:07 +00:00
Dan Abramov c2fdbbc86f Remove early onPageSelected call
It was added to try to do some work eagerly when we're sure which way the scroll is snapping. This is not necessarily a good idea though. It schedules a potentially expensive re-render right during the deceleration animation, which is not great. Whatever we're optimizing there, we should optimize smarter (e.g. prewarm just the network call). The other thing it used to help with is triggering the pager header autoscroll earlier. But we're going to rewrite that part differently anyway so that's not relevant either.
2024-11-30 18:03:07 +00:00
Dan Abramov 06d03fff94 Remove onPageSelecting event
It's difficult to tell what exactly it's supposed to represent, and in practice it's not really used aside from logging. Let's rip it out for now to keep other changes simpler.
2024-11-30 18:03:07 +00:00
Dan Abramov 972fb887ec Trim dead code from both forks 2024-11-30 18:03:07 +00:00
Dan Abramov ffd063151d Fork TabBar.web.tsx 2024-11-30 18:03:07 +00:00
dan 5f4a0f2881 "Contain" images with missing dimensions instead of cropping them (#6828)
* Show unknown aspect as "contain" for autosize

* Fix a flash of wrong position when opening in lightbox

* Fix last frame flash on Android
2024-11-28 23:29:45 +00:00
dan d08ce0d473 Fix stuck lightbox (#6816)
* Fix lightbox getting stuck by fixing rAF order

If you spam opening lightbox too fast, the effect that calls rAF will clean up and set up again midflight. Unfortunately, due to rAF order being unreliable, it may fire in reverse order, causing "open, open, close" instead of "open, close, open", so it would get stuck closed. This fixes the rAF order.

* Don't allow opening another lightbox while it's open
2024-11-28 16:55:05 +00:00
Samuel Newman 0aee6390fa ensure black root view on iOS (#6813) 2024-11-28 15:41:33 +00:00
Foster 84796c1bcf fix iOS language picker style in dark mode (#6804)
Co-authored-by: skipness <ckhf@proton.me>
2024-11-28 14:31:10 +00:00
dan 6a2067a761 Revert "Revert "bump version to 1.96 (#6781)" (#6790)" (#6794)
This reverts commit c9d86de152.
2024-11-27 22:05:31 +00:00
dan c9d86de152 Revert "bump version to 1.96 (#6781)" (#6790)
This reverts commit b2c232e9fd.
2024-11-27 19:21:08 +00:00
Samuel Newman 29b3b3db30 YT embed tweak (#6789)
* tweak css

* fix typo

* More tweak

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-11-27 19:19:36 +00:00
dan 47cbdfecb3 Fix web build by removing app icon settings (#6784) 2024-11-27 15:34:12 +00:00
dan 763a5d5ab5 Fix gap between Write Your Reply and bottom bar on web (#6783)
* Fix gap between Write Your Reply and bottom bar on web

* rm log
2024-11-27 14:54:09 +00:00
Samuel Newman 6a29296ae0 [Subs] Custom app icons (#6758)
* custom icons

* rm default

* clouds.jpg

* use cross-platform fork

* minor fixes for android

* update dynamic icon lib

* gate app icon settings behind discover debug dids

* rename clouds

* Bop it

* Update default ios icon as well

* Remove old icon

* Update logo placement

* update to latest expo-dynamic-app-icon

* fix android icon sizes

---------

Co-authored-by: Eric Bailey <git@esb.lol>
2024-11-27 14:41:18 +00:00
Samuel Newman c7d57b6374 css color transitions on left nav (#6768) 2024-11-27 14:34:07 +00:00
Frudrax Cheng 91fffd3cd2 Fix ast (#6774) 2024-11-27 14:17:44 +00:00
Samuel Newman b2c232e9fd bump version to 1.96 (#6781) 2024-11-27 14:12:04 +00:00
Paul Frazee 2a575addba Fix import sort 1.95.0 2024-11-26 19:32:19 -08:00
Paul Frazee 6d290591da Release 1.95 take2 (#6771)
* Run intl extract

* Update join count
2024-11-26 19:27:44 -08:00
Softastur 1edebc5dc7 Add "ast" locale support (#6411)
* Add "ast" locale support

* Add "ast" locale support

* Add "ast" locale support

* Add "ast" locale support

* Add "ast" locale support

* Add "ast" locale support

* Add "ast" translations

This commit adds preliminary translation support for "ast" locale. Around 20% is translated.

* Update "ast" locale translations

* Update "ast" translations

Fixes minor spelling mistakes and translates many strings more

* Update messages.po

With this commit we reach the 55% of strings translated after the last code sync

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2024-11-26 19:14:43 -08:00
Juan Pablo Martínez 5929c2678c Add Aragonese language ('an') support and l10n (#6638)
* Update languages.ts

* Update i18n.web.ts

* Update i18n.ts

* Update helpers.ts

* Create messages.po

* Update lingui.config.js

* Update dates.ts

* Add files via upload

* Update src/components/hooks/dates.ts

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

* Update src/components/hooks/dates.ts

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

* Update i18n.ts

* Update messages.po

* Update src/locale/i18n.ts

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

---------

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
2024-11-26 19:06:47 -08:00
Ivan Beà 8cbe68306d Update catalan messages.po (#6682)
* Update catalan messages.po

Back to 100% translated.
Applied pending corrections by @darcio and @jordimas https://static.softcatala.org/quality/bluesky_social_app.html

Please take a look at it @ivanbea @jordimas @darccio @surfdude29 @rortan134 @magarcia

* Update catalan messages.po

Change all "arxiu" to "fitxer" as suggested by @jordimas

* Update catalan messages.po

Suggestions by @aryiu
2024-11-26 19:03:19 -08:00
Michele Locati 95e1b21788 Update Italian translations (#6717) 2024-11-26 19:02:09 -08:00
Guido Leenders b9db950d52 Informal tone and other improvements to Dutch (#6724)
* Informal tone [ER].

* More improvements [ER].

* Improvements by Flitskikker [ER].
2024-11-26 19:01:02 -08:00
Nando eb9dfba9f4 Improve German translation (#6750) 2024-11-26 18:54:18 -08:00