This repository was archived by the owner on Nov 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/packages/core/property/property-layout Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ export class UmbPropertyLayoutElement extends UmbLitElement {
6060 public invalid ?: boolean ;
6161
6262 override render ( ) {
63- const ufmValue = { alias : this . alias , label : this . label , description : this . description } ;
6463 // TODO: Only show alias on label if user has access to DocumentType within settings:
6564 return html `
6665 <div id= "headerColumn" >
@@ -69,9 +68,7 @@ export class UmbPropertyLayoutElement extends UmbLitElement {
6968 ${ when ( this . invalid , ( ) => html `<uui- badge color = "danger" attention > !</ uui- badge> ` ) }
7069 </ uui- label>
7170 <slot name= "action-menu" > </ slot>
72- <uui- scroll- container id= "description" >
73- <umb- ufm- render .markdown = ${ this . description } .value = ${ ufmValue } > </ umb- ufm- render>
74- </ uui- scroll- container>
71+ ${ this . #renderDescription( ) }
7572 <slot name= "description" > </ slot>
7673 </ div>
7774 <div id= "editorColumn" >
@@ -82,6 +79,12 @@ export class UmbPropertyLayoutElement extends UmbLitElement {
8279 ` ;
8380 }
8481
82+ #renderDescription( ) {
83+ if ( ! this . description ) return ;
84+ const ufmValue = { alias : this . alias , label : this . label , description : this . description } ;
85+ return html `<umb- ufm- render .markdown = ${ this . description } .value = ${ ufmValue } > </ umb- ufm- render> ` ;
86+ }
87+
8588 static override styles = [
8689 UmbTextStyles ,
8790 css `
You can’t perform that action at this time.
0 commit comments