Added a better handling of text and descriptions of the buttons with different sizes
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user