Skip to content

Commit 778d3b1

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 aba8226 commit 778d3b1

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
@@ -279,7 +279,7 @@ const TOP_ROW_BALANCE_TEXT_STYLE = {
279279
} as const;
280280

281281
const BOTTOM_ROW_BALANCE_TEXT_STYLE = {
282-
textVariant: TextVariant.BodyMD,
282+
textVariant: TextVariant.BodySM,
283283
textColor: TextColor.Alternative,
284284
} as const;
285285

0 commit comments

Comments
 (0)