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 {
60
60
public invalid ?: boolean ;
61
61
62
62
override render ( ) {
63
- const ufmValue = { alias : this . alias , label : this . label , description : this . description } ;
64
63
// TODO: Only show alias on label if user has access to DocumentType within settings:
65
64
return html `
66
65
<div id= "headerColumn" >
@@ -69,9 +68,7 @@ export class UmbPropertyLayoutElement extends UmbLitElement {
69
68
${ when ( this . invalid , ( ) => html `<uui- badge color = "danger" attention > !</ uui- badge> ` ) }
70
69
</ uui- label>
71
70
<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( ) }
75
72
<slot name= "description" > </ slot>
76
73
</ div>
77
74
<div id= "editorColumn" >
@@ -82,6 +79,12 @@ export class UmbPropertyLayoutElement extends UmbLitElement {
82
79
` ;
83
80
}
84
81
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
+
85
88
static override styles = [
86
89
UmbTextStyles ,
87
90
css `
You can’t perform that action at this time.
0 commit comments