Skip to content
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

fix: Permit Simulation vertical overflow, title padding, and collapsed message alignment #13830

Merged
merged 7 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -828,58 +828,50 @@ exports[`SnapUIRenderer renders complex nested components 1`] = `
</Text>
</View>
<View
alignItems="center"
flexDirection="row"
gap={4}
style={
{
"marginLeft": "auto",
}
[
{
"alignItems": "center",
"flexDirection": "row",
"gap": 4,
},
undefined,
]
}
>
<View
alignItems="center"
flexDirection="row"
gap={4}
<Text
accessibilityRole="text"
style={
[
{
"alignItems": "center",
"flexDirection": "row",
"gap": 4,
},
undefined,
]
{
"color": "#9fa6ae",
"fontFamily": "EuclidCircularB-Regular",
"fontSize": 14,
"fontWeight": "400",
"letterSpacing": 0,
"lineHeight": 22,
}
}
>
<Text
accessibilityRole="text"
style={
{
"color": "#9fa6ae",
"fontFamily": "EuclidCircularB-Regular",
"fontSize": 14,
"fontWeight": "400",
"letterSpacing": 0,
"lineHeight": 22,
}
}
>
Extra
</Text>
<Text
accessibilityRole="text"
style={
{
"color": "#141618",
"fontFamily": "EuclidCircularB-Regular",
"fontSize": 14,
"fontWeight": "400",
"letterSpacing": 0,
"lineHeight": 22,
}
Extra
</Text>
<Text
accessibilityRole="text"
style={
{
"color": "#141618",
"fontFamily": "EuclidCircularB-Regular",
"fontSize": 14,
"fontWeight": "400",
"letterSpacing": 0,
"lineHeight": 22,
}
>
Value
</Text>
</View>
}
>
Value
</Text>
</View>
</View>
<View
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,62 +196,54 @@ exports[`AccountNetworkInfoExpanded should match snapshot when isPortfolioVieEna
<View
style={
{
"marginLeft": "auto",
"alignItems": "center",
"display": "flex",
"flexDirection": "row",
}
}
>
<View
style={
{
"alignItems": "center",
"display": "flex",
"flexDirection": "row",
"backgroundColor": "#ffffff",
"borderRadius": 8,
"height": 16,
"justifyContent": "center",
"overflow": "hidden",
"width": 16,
}
}
>
<View
<Image
onError={[Function]}
resizeMode="contain"
source={1}
style={
{
"alignItems": "center",
"backgroundColor": "#ffffff",
"borderRadius": 8,
"height": 16,
"justifyContent": "center",
"overflow": "hidden",
"width": 16,
}
}
>
<Image
onError={[Function]}
resizeMode="contain"
source={1}
style={
{
"height": 16,
"width": 16,
}
}
testID="network-avatar-image"
/>
</View>
<Text
accessibilityRole="text"
style={
{
"color": "#141618",
"fontFamily": "EuclidCircularB-Regular",
"fontSize": 14,
"fontWeight": "400",
"letterSpacing": 0,
"lineHeight": 22,
"marginLeft": 8,
}
}
>
Ethereum Mainnet
</Text>
testID="network-avatar-image"
/>
</View>
<Text
accessibilityRole="text"
style={
{
"color": "#141618",
"fontFamily": "EuclidCircularB-Regular",
"fontSize": 14,
"fontWeight": "400",
"letterSpacing": 0,
"lineHeight": 22,
"marginLeft": 8,
}
}
>
Ethereum Mainnet
</Text>
</View>
</View>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const styleSheet = (colors: Theme['colors']) =>
rowGap: 8,
flexDirection: 'row',
alignItems: 'center',
alignSelf: 'center',
justifyContent: 'flex-end',
flexWrap: 'wrap',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const styleSheet = (params: { theme: Theme }) => {
color: theme.colors.text.default,
...fontStyles.bold,
fontSize: 14,
marginBottom: 4,
},
description: {
color: theme.colors.text.default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const styleSheet = (params: { theme: Theme }) => {
return StyleSheet.create({
titleContainer: {
marginVertical: 24,
paddingHorizontal: 16,
},
title: {
color: theme.colors.text.default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const ExpandableSection = ({
const [expanded, setExpanded] = useState(false);

const iconStyle =
iconVerticalPosition === IconVerticalPosition.Top ? { top: 18 } : {};
iconVerticalPosition === IconVerticalPosition.Top ? { top: 20 } : {};

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ const styleSheet = (params: { theme: Theme }) => {
...fontStyles.normal,
fontSize: 14,
},
valueComponent: {
marginLeft: 'auto',
},
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const InfoRow = ({
{typeof children === 'string' ? (
<Text style={styles.value}>{children}</Text>
) : (
<View style={styles.valueComponent}>{children}</View>
<>{children}</>
)}
</View>
);
Expand Down
Loading