fix: Add pre-wrap to Text component so that elements with \n wrap

Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2023-02-20 10:45:36 +01:00
parent eaf509262d
commit acc4230cb6
Signed by: Florian Bouillon
GPG Key ID: E05B3A94178D3A7C
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
margin 0 margin 0
font-size rem(16) font-size rem(16)
font-weight normal font-weight normal
white-space pre-wrap
+ .text + .text
margin-top 8px margin-top 8px

View File

@ -59,7 +59,7 @@ const types: Record<Types, {
/** /**
* Display Text lol * Display Text lol
* *
* @version 1.0.0 * @version 1.0.1
*/ */
export default class Text extends React.Component<Props> { export default class Text extends React.Component<Props> {