Merge branch 'card-title-truncate' into 'develop'
CardTitle: truncate too long text See merge request soapbox-pub/soapbox-fe!1286
This commit is contained in:
commit
e2cbc449ad
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ interface ICardTitle {
|
|||
}
|
||||
|
||||
/** A card's title. */
|
||||
const CardTitle = ({ title }: ICardTitle): JSX.Element => (
|
||||
<Text size='xl' weight='bold' tag='h1' data-testid='card-title'>{title}</Text>
|
||||
const CardTitle: React.FC<ICardTitle> = ({ title }): JSX.Element => (
|
||||
<Text size='xl' weight='bold' tag='h1' data-testid='card-title' truncate>{title}</Text>
|
||||
);
|
||||
|
||||
/** A card's body. */
|
||||
|
|
Loading…
Reference in a new issue