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",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<Box style={{
|
||||
flexGrow: 1,
|
||||
}}>
|
||||
{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>
|
||||
<Row
|
||||
|
||||
Reference in New Issue
Block a user