From acc4230cb69f96cca3cd6e66546ce74d8ab8b126 Mon Sep 17 00:00:00 2001 From: Avior Date: Mon, 20 Feb 2023 10:45:36 +0100 Subject: [PATCH] fix: Add pre-wrap to Text component so that elements with \n wrap Signed-off-by: Avior --- src/Text/Text.module.styl | 1 + src/Text/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Text/Text.module.styl b/src/Text/Text.module.styl index 8a2129b..fe74ebb 100644 --- a/src/Text/Text.module.styl +++ b/src/Text/Text.module.styl @@ -4,6 +4,7 @@ margin 0 font-size rem(16) font-weight normal + white-space pre-wrap + .text margin-top 8px diff --git a/src/Text/index.tsx b/src/Text/index.tsx index a8d6f2a..9f53e90 100644 --- a/src/Text/index.tsx +++ b/src/Text/index.tsx @@ -59,7 +59,7 @@ const types: Record {