Skip to content

Commit ad5bb67

Browse files
fix: correct bottom row text variant and remove getItemLayout in Bridge token selector
- TokenSelectorItem: fix BOTTOM_ROW_BALANCE_TEXT_STYLE to use BodySM (was accidentally changed to BodyMD when extracting the inline constant), restoring visual alignment with the BodySM token name on the same row - BridgeTokenSelector: remove getItemLayout since items have variable heights due to conditional badges and labels — fixed offsets cause scroll position jumps with non-uniform items Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a748caa commit ad5bb67

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

app/components/UI/Bridge/components/BridgeTokenSelector/BridgeTokenSelector.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -570,11 +570,6 @@ export const BridgeTokenSelector: React.FC = () => {
570570
maxToRenderPerBatch={5}
571571
windowSize={5}
572572
removeClippedSubviews
573-
getItemLayout={(_data, index) => ({
574-
length: ESTIMATED_ITEM_HEIGHT,
575-
offset: ESTIMATED_ITEM_HEIGHT * index,
576-
index,
577-
})}
578573
/>
579574
</SafeAreaView>
580575
);

app/components/UI/Bridge/components/TokenSelectorItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ const TOP_ROW_BALANCE_TEXT_STYLE = {
268268
} as const;
269269

270270
const BOTTOM_ROW_BALANCE_TEXT_STYLE = {
271-
textVariant: TextVariant.BodyMD,
271+
textVariant: TextVariant.BodySM,
272272
textColor: TextColor.Alternative,
273273
} as const;
274274

0 commit comments

Comments
 (0)