-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Layout] Base #6907
Merged
Merged
[Layout] Base #6907
Changes from 72 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
6df90b2
Add common gutter styles as hook
estrattonbailey e406bad
Add computed scrollbar gutter CSS vars
estrattonbailey 63844a8
Add new layout components
estrattonbailey e88b3e4
Replace layout components in settings screens
estrattonbailey 48f44fd
Remove old back button
estrattonbailey 6c31ad4
Invert web border logic for easier migration
estrattonbailey b636224
Clean up Slot API
estrattonbailey 2fd9151
Port over FF handling of scrollbar offset
estrattonbailey 2a60f35
Trade boilerplate for ease of use
estrattonbailey dd4d944
Limit to one line
estrattonbailey 264a866
Allow two lines, fix wrapping
estrattonbailey b7f356b
Fix alignment
estrattonbailey 50cea19
sticky headers
mozzius faf0c27
set max with on header and center
mozzius 6a6faf3
[Layout] Notifications Header (#6910)
estrattonbailey ce7ab43
Replace Hashtag header (#6928)
estrattonbailey 2aecb48
[Layout] ChatList header (#6929)
estrattonbailey 1819e08
Add web borders to Chat settings
estrattonbailey 2ffbd11
Remove unused var
estrattonbailey 3a518f9
Move ChatList header outside center
estrattonbailey 199015d
Replace empty chat layout
estrattonbailey ba2162f
fix breakpoints
mozzius a0db0e1
[Layout] Scrollbar gutters (#6908)
estrattonbailey fae2c63
use correct scroll insets (#6950)
mozzius 274a263
[Layout] Feeds headers (#6913)
estrattonbailey 0981491
[Layout] Every other screen (#6953)
mozzius abbc570
delete `SimpleViewHeader` and fix screens (#6956)
mozzius c426fe5
Make Layout.Center not full height
estrattonbailey 2ec78e6
Refactor List to use Layout.Center, remove built-in borders
estrattonbailey df01417
Fix Home screen
estrattonbailey 9a7ca14
Refactor PagerWithHeader to use Layout components
estrattonbailey 5a3c0e0
Replace components in ProfileFeed and ProfileList
estrattonbailey 934782f
Borders on Profile
estrattonbailey 5b4c0bd
Search screen replacements
estrattonbailey 5323d23
use new header for profile subpage header (#6958)
mozzius a5ef82f
Search AutocompleteResults
estrattonbailey a8b98dc
use new header for starter pack wizard (#6957)
mozzius 1611d44
Fix post thread
estrattonbailey ed7bd12
Enable borders by default
estrattonbailey a2fb626
Moderation muted and blocked accounts
estrattonbailey e740bdd
Fix scrollbar offset on Labeler
estrattonbailey 7df55eb
Remove ScrollView from Moderation
estrattonbailey 03b871e
Remove ScrollView from Deactivated
estrattonbailey 6a3854b
Remove ScrollView from onboarding
estrattonbailey 0c24e5e
Remove ScrollView from SignupQueued
estrattonbailey bb99323
Mark deprecations
estrattonbailey a3778d1
fix lint
mozzius 2ac21c1
Fix double borders on profile load
estrattonbailey 0a9eb0e
Remove unneeded CenteredView from noty Feed
estrattonbailey 46a4d9b
Remove double Center layout on Notifications screen
estrattonbailey 7cd3e2d
Remove double Center layout on ChatList screen
estrattonbailey 9645e0d
Handle scrollbar offset in chat
estrattonbailey 7693712
Use new atom for other scrollbar offsets
estrattonbailey d8dc0d2
Remove borders from old views
estrattonbailey 491573d
Better doc
estrattonbailey bba6567
Remove temp migration prop
estrattonbailey 050563e
Fix new atom usage on native
estrattonbailey 7681046
Clean up Hashtag screen
estrattonbailey ccae2f5
Layout docs
estrattonbailey e5953be
Clarify usage in Pager
estrattonbailey a96b93a
Handle nested offset contexts
estrattonbailey d3bd2a4
Clean up Layout
estrattonbailey df9c05a
fix feeds page
mozzius 3d48925
asymmetric header on native (#6969)
mozzius c8c03ed
Reusable header const
estrattonbailey b82551c
Fix up home header
estrattonbailey 44d739a
Add back button to convo
estrattonbailey 002e328
Add hitslop to header buttons
estrattonbailey 08dc17b
Comment
estrattonbailey 3e261aa
Better handling on native for new atom
estrattonbailey 11f2efe
Format
estrattonbailey b6ce210
Fix nested flatlist on mod screens
estrattonbailey 42702f1
Use react-remove-scroll-bar directly
estrattonbailey c5314b9
Fix notification count overflow on web
estrattonbailey 8914f1e
Clarify doc
estrattonbailey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react' | ||
|
||
import {atoms as a, useBreakpoints, ViewStyleProp} from '#/alf' | ||
|
||
export function useGutterStyles({ | ||
top, | ||
bottom, | ||
}: { | ||
top?: boolean | ||
bottom?: boolean | ||
} = {}) { | ||
const {gtMobile} = useBreakpoints() | ||
return React.useMemo<ViewStyleProp['style']>(() => { | ||
return [ | ||
a.px_lg, | ||
top && a.pt_md, | ||
bottom && a.pb_md, | ||
gtMobile && [a.px_xl, top && a.pt_lg, bottom && a.pb_lg], | ||
] | ||
}, [gtMobile, top, bottom]) | ||
} |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
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 is already present via Radix, but we explicitly depend on it now