Skip to content

Commit 0a75dcb

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 73e5994 commit 0a75dcb

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
@@ -550,11 +550,6 @@ export const BridgeTokenSelector: React.FC = () => {
550550
maxToRenderPerBatch={5}
551551
windowSize={5}
552552
removeClippedSubviews
553-
getItemLayout={(_data, index) => ({
554-
length: ESTIMATED_ITEM_HEIGHT,
555-
offset: ESTIMATED_ITEM_HEIGHT * index,
556-
index,
557-
})}
558553
/>
559554
</SafeAreaView>
560555
);

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

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

276276
const BOTTOM_ROW_BALANCE_TEXT_STYLE = {
277-
textVariant: TextVariant.BodyMD,
277+
textVariant: TextVariant.BodySM,
278278
textColor: TextColor.Alternative,
279279
} as const;
280280

0 commit comments

Comments
 (0)