From 71eeca096330781e1a4f061aecaab528009234c5 Mon Sep 17 00:00:00 2001
From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Date: Mon, 30 Sep 2024 10:20:41 +0200
Subject: [PATCH] fix: revert back to `white-space: pre` and fix the underlying
issue with sysinfo
---
src/packages/core/components/code-block/code-block.element.ts | 2 +-
src/packages/sysinfo/components/sysinfo.element.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/packages/core/components/code-block/code-block.element.ts b/src/packages/core/components/code-block/code-block.element.ts
index b285a9d1d3..ddcead0191 100644
--- a/src/packages/core/components/code-block/code-block.element.ts
+++ b/src/packages/core/components/code-block/code-block.element.ts
@@ -86,7 +86,7 @@ export class UmbCodeBlockElement extends LitElement {
pre,
code {
word-wrap: normal;
- white-space: pre-line;
+ white-space: pre;
}
#header {
diff --git a/src/packages/sysinfo/components/sysinfo.element.ts b/src/packages/sysinfo/components/sysinfo.element.ts
index 50295c8b3b..63dfb31984 100644
--- a/src/packages/sysinfo/components/sysinfo.element.ts
+++ b/src/packages/sysinfo/components/sysinfo.element.ts
@@ -78,7 +78,7 @@ export class UmbSysinfoElement extends UmbModalBaseElement {
${when(
this._loading,
() => html``,
- () => html` ${this._systemInformation} `,
+ () => html` ${this._systemInformation} `,
)}