Skip to content

Commit 2ca4e0e

Browse files
committed
remove max-height setting from code-block
1 parent 7d703cc commit 2ca4e0e

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/Umbraco.Web.UI.Client/src/packages/core/components/code-block/code-block.element.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export class UmbCodeBlockElement extends LitElement {
6868
}
6969
7070
uui-scroll-container {
71-
max-height: 500px;
7271
overflow-y: auto;
7372
overflow-wrap: anywhere;
7473
}

src/Umbraco.Web.UI.Client/src/packages/models-builder/models-builder-dashboard.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class UmbModelsBuilderDashboardElement extends UmbLitElement {
9595
</p>
9696
${this._modelsBuilder?.lastError
9797
? html`<p class="error">Last generation failed with the following error:</p>
98-
<umb-code-block>${this._modelsBuilder.lastError}</umb-code-block>`
98+
<umb-code-block style="max-height:500px;">${this._modelsBuilder.lastError}</umb-code-block>`
9999
: nothing}
100100
</uui-box>
101101
`;

src/Umbraco.Web.UI.Client/src/packages/templating/modals/templating-page-field-builder/templating-page-field-builder-modal.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class UmbTemplatingPageFieldBuilderModalElement extends UmbModalBaseEleme
9494
?disabled=${this._field ? false : true}></uui-checkbox>
9595
9696
<uui-label><umb-localize key="templateEditor_outputSample">Output sample</umb-localize></uui-label>
97-
<umb-code-block language="C#" copy
97+
<umb-code-block style="max-height:500px;" language="C#" copy
9898
>${this._field ? getUmbracoFieldSnippet(this._field, this._default, this._recursive) : ''}</umb-code-block
9999
>
100100
</div>

src/Umbraco.Web.UI.Client/src/packages/templating/templates/modals/query-builder/query-builder-modal.element.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ export default class UmbTemplateQueryBuilderModalElement extends UmbModalBaseEle
254254
(sample) => html`<span><umb-icon name=${sample.icon}></umb-icon>${sample.name}</span>`,
255255
) ?? ''}
256256
</div>
257-
<umb-code-block language="C#" copy>${this._templateQuery?.queryExpression ?? ''}</umb-code-block>
257+
<umb-code-block style="max-height:500px;" language="C#" copy
258+
>${this._templateQuery?.queryExpression ?? ''}</umb-code-block
259+
>
258260
</uui-box>
259261
</div>
260262

0 commit comments

Comments
 (0)