Repository navigation
components 0.7.0: MD3 feed of cards; Card.Cover's 16:9 in the vendor list and the documents - #208
Merged
Merged
Conversation
…in the vendor list and the documents - Layout `Feed` (MD3 canonical layout «feed»): as many columns as fit at least `paneMetrics.fixedPane` wide (MD3's 360 dp pane), one on a phone, each item as wide as its column, 16 dp between items both ways. `feedColumns` is the geometry and `useFeedColumns` the measured hook for a virtualized list. Until measured, the window's width decides; it follows a resized window. - VendorList is that feed, virtualized: a FlatList with `numColumns` (a new list when the count changes, as React Native requires), the rows keeping the screen's margins. `sections` stays its input, flattened in order. - imageKitCard / imageKitCardLqip take the card's width and crop to 16:9 (`ar-16-9`) instead of the window's width at load time and a fixed height. - DocumentCovers shows the sides whole, side by side and sharing the width, where each is at least a feed column (360 dp), else the carousel; it no longer measures the cover's height, which now follows its width. - Peer: react-native-paper ^5.12.14 (Card.Cover keeps 16:9). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
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.
Feed(MD3 canonical layout «feed»): as many columns as fit at leastpaneMetrics.fixedPanewide (MD3's 360 dp pane), one on a phone, each item as wide as its column, 16 dp between items both ways.feedColumnsis the geometry,useFeedColumnsthe measured hook for a virtualized list; until measured the window's width decides, and it follows a resized window.numColumns(a new list when the count changes, as React Native requires), the rows keeping the screen's margins.sectionsstays its input, flattened in order.ar-16-9) instead of the window's width at load time and a fixed height.^5.12.14(Card.Cover keeps 16:9, published).Tests: Layout, Partner and VendorList suites, 13 suites / 1025 tests pass (new:
Layout/__tests__/Feed.test.js,VendorList/__tests__/VendorList.test.js).eslintcannot run in this repo (its@react-native-communityconfig is not installed); prettier on the changed lines.🤖 Generated with Claude Code