remove max-height setting from code-block
This commit is contained in:
@@ -68,7 +68,6 @@ export class UmbCodeBlockElement extends LitElement {
|
||||
}
|
||||
|
||||
uui-scroll-container {
|
||||
max-height: 500px;
|
||||
overflow-y: auto;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
`;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user