Added a better handling of text and descriptions of the buttons with different sizes

This commit is contained in:
Clément Le Bihan
2023-04-10 00:29:06 +02:00
parent 067f5e711d
commit c5ba72229f
2 changed files with 17 additions and 2 deletions
+16 -2
View File
@@ -124,9 +124,23 @@ const Element = ({
alignItems: "center", alignItems: "center",
}} }}
> >
<Box> <Box style={{
flexGrow: 1,
}}>
{icon} {icon}
<Text>{title}</Text> <Column>
<Text isTruncated maxW={"95%"} >{title}</Text>
{description && (
<Text isTruncated maxW={"90%"}
style={{
opacity: 0.6,
fontSize: 12,
}}
>
{description}
</Text>
)}
</Column>
</Box> </Box>
<Box> <Box>
<Row <Row
@@ -98,6 +98,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
{ {
type: "text", type: "text",
title: "ID", title: "ID",
helperText: "This is your unique ID, be proud of it!",
data: { data: {
text: user.id, text: user.id,
}, },