remove max-height setting from code-block

This commit is contained in:
Niels Lyngsø
2025-01-30 14:01:51 +01:00
parent 7d703cc9bd
commit 2ca4e0e1bd
4 changed files with 5 additions and 4 deletions

View File

@@ -68,7 +68,6 @@ export class UmbCodeBlockElement extends LitElement {
}
uui-scroll-container {
max-height: 500px;
overflow-y: auto;
overflow-wrap: anywhere;
}

View File

@@ -95,7 +95,7 @@ export class UmbModelsBuilderDashboardElement extends UmbLitElement {
</p>
${this._modelsBuilder?.lastError
? html`<p class="error">Last generation failed with the following error:</p>
<umb-code-block>${this._modelsBuilder.lastError}</umb-code-block>`
<umb-code-block style="max-height:500px;">${this._modelsBuilder.lastError}</umb-code-block>`
: nothing}
</uui-box>
`;

View File

@@ -94,7 +94,7 @@ export class UmbTemplatingPageFieldBuilderModalElement extends UmbModalBaseEleme
?disabled=${this._field ? false : true}></uui-checkbox>
<uui-label><umb-localize key="templateEditor_outputSample">Output sample</umb-localize></uui-label>
<umb-code-block language="C#" copy
<umb-code-block style="max-height:500px;" language="C#" copy
>${this._field ? getUmbracoFieldSnippet(this._field, this._default, this._recursive) : ''}</umb-code-block
>
</div>

View File

@@ -254,7 +254,9 @@ export default class UmbTemplateQueryBuilderModalElement extends UmbModalBaseEle
(sample) => html`<span><umb-icon name=${sample.icon}></umb-icon>${sample.name}</span>`,
) ?? ''}
</div>
<umb-code-block language="C#" copy>${this._templateQuery?.queryExpression ?? ''}</umb-code-block>
<umb-code-block style="max-height:500px;" language="C#" copy
>${this._templateQuery?.queryExpression ?? ''}</umb-code-block
>
</uui-box>
</div>