-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Web Layout #2126
Merged
Merged
New Web Layout #2126
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gaearon
force-pushed
the
web-layout
branch
13 times, most recently
from
December 12, 2023 20:59
8a10c66
to
746443e
Compare
Starting with the positives:
Small issues that I'd be 100% okay with solving in followups:
Somewhat less minor issues but still okay with putting in followups:
|
This reverts commit 62516ed.
pfrazee
approved these changes
Jan 22, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was an enormous PITA slog and I appreciate you sticking with it dan. I'm excited to have this done.
estrattonbailey
added a commit
that referenced
this pull request
Jan 23, 2024
* origin: (109 commits) Update Korean localization (#2494) fix: don't expose post content on no-unauthenticated (#2584) Tweak positioning use color scheme in in-app browser (#2580) Fix jump when opening last post in thread (#2591) Fix orphan replies in linear mode (#2578) Fix typos, improve localization and unify separators (#2502) Update Japanese localization based on the latest codebase (#2509) Update pt-BR translation (#2471) New Web Layout (#2126) Update src/locale/locales/id/messages.po Update src/locale/locales/id/messages.po Update src/locale/locales/id/messages.po Update src/locale/locales/id/messages.po Update src/locale/locales/id/messages.po Update src/locale/locales/id/messages.po Update src/locale/locales/id/messages.po Update src/locale/locales/id/messages.po Update src/locale/locales/id/messages.po Update src/locale/locales/id/messages.po ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Reworking of web layout that makes the document itself scrollable instead of the list node. Despite the dicey PR title, how the layout looks is meant to remain the same. What I'm aiming to change is how it achieves that look.
Removes virtualization on the web although custom one could plausibly be re-added.
Why?
Fixes scroll jump on clicking into post (before/after):
before_after.mov
Fixes scroll lag on profile:
RPReplay_Final1703215450.MP4
Will also unblock fixing unselectable text in profile header.
Plan
FlatList
which assumes the scrollable node is owned by itonScroll
handlers to thewindow
scrollToOffset
position: sticky
onScroll
onEndReached
withoutonScroll
onScrolledDownChange
withoutonScroll
Empty screen during popstate gesture on iOS Safari(won't fix)any
types, enforce that.web
and.native
types matchdesktopFixedHeight
prop if we can (is it needed anymore?)minHeight: Dimensions.get('window').height * 1.5
styles if we can (do we need them anymore?)pointer-events
hack to fix unselectable text in profile headerFlatList
fromViews.web
and possibly forcing exclusion of its code from the bundle