feat: add max-height to code-block and cleanup css

This commit is contained in:
Jacob Overgaard
2024-09-10 12:17:33 +02:00
parent ae7a732357
commit f598dde7c7

View File

@@ -78,7 +78,7 @@ export class UmbSysinfoElement extends UmbModalBaseElement {
${when(
this._loading,
() => html`<uui-loader-bar></uui-loader-bar>`,
() => html` <umb-code-block> ${this._systemInformation} </umb-code-block> `,
() => html` <umb-code-block id="codeblock"> ${this._systemInformation} </umb-code-block> `,
)}
<uui-button
@@ -131,13 +131,9 @@ ${this._systemInformation}`;
static override readonly styles = [
UmbTextStyles,
css`
#container {
#code-block {
max-height: 300px;
}
.data-cell {
word-break: break-word;
}
`,
];
}