mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 13:22:02 +03:00
fixed alignment in post crad dropdown in RTL
This commit is contained in:
parent
c08654bde5
commit
f2175c47f0
@ -80,5 +80,6 @@ export default EStyleSheet.create({
|
|||||||
rowText: {
|
rowText: {
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: '$primaryDarkGray',
|
color: '$primaryDarkGray',
|
||||||
|
textAlign: 'left',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -42,7 +42,11 @@ const renderDropdownRow = (
|
|||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
const adjustDropdownFrame = (style:any) => {
|
||||||
|
style.left = 'auto'
|
||||||
|
style.right = 10
|
||||||
|
return style
|
||||||
|
}
|
||||||
const DropdownButtonView = ({
|
const DropdownButtonView = ({
|
||||||
childIconWrapperStyle,
|
childIconWrapperStyle,
|
||||||
children,
|
children,
|
||||||
@ -90,6 +94,7 @@ const DropdownButtonView = ({
|
|||||||
dropdownRowWrapper,
|
dropdownRowWrapper,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
adjustFrame={(style: any) => adjustDropdownFrame(style) }
|
||||||
>
|
>
|
||||||
{isHasChildIcon && !isLoading ? (
|
{isHasChildIcon && !isLoading ? (
|
||||||
<View style={[styles.iconWrapper, childIconWrapperStyle && childIconWrapperStyle]}>
|
<View style={[styles.iconWrapper, childIconWrapperStyle && childIconWrapperStyle]}>
|
||||||
|
Loading…
Reference in New Issue
Block a user