From 0a5289be206eca7adf38a7e1d200be5582876846 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 15 Feb 2019 14:24:42 +0100 Subject: [PATCH] respect line breaks in description --- src/routes/Details/AssetDetails.module.scss | 5 +++++ src/routes/Details/AssetDetails.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/routes/Details/AssetDetails.module.scss b/src/routes/Details/AssetDetails.module.scss index f4f46f5..c896777 100644 --- a/src/routes/Details/AssetDetails.module.scss +++ b/src/routes/Details/AssetDetails.module.scss @@ -37,6 +37,11 @@ } } +.description { + // respect line breaks from textarea + white-space: pre-line; +} + .meta { border-top: 1px solid $brand-grey-lighter; border-bottom: 1px solid $brand-grey-lighter; diff --git a/src/routes/Details/AssetDetails.tsx b/src/routes/Details/AssetDetails.tsx index 85730ba..8605b3a 100644 --- a/src/routes/Details/AssetDetails.tsx +++ b/src/routes/Details/AssetDetails.tsx @@ -43,7 +43,7 @@ export default class AssetDetails extends PureComponent { -
{base.description}
+
{base.description}