@@ -996,7 +996,7 @@ export class KdbDataSourceView extends LitElement {
996996
997997 renderUDA ( ) {
998998 return html `
999- < div class ="col width-70 -pct ">
999+ < div class ="col width-80 -pct ">
10001000 < sl-select
10011001 label ="User Defined Analytic (UDA) "
10021002 .value ="${ live ( encodeURIComponent ( this . selectedUDA ) ) } "
@@ -1111,11 +1111,7 @@ export class KdbDataSourceView extends LitElement {
11111111 < sl-dropdown
11121112 class ="udaDropdown width-30-pct "
11131113 @sl-select ="${ this . handleUDAAddParamSelect } ">
1114- < sl-button
1115- slot ="trigger "
1116- class ="width-100-pct "
1117- variant ="neutral "
1118- caret >
1114+ < sl-button slot ="trigger " variant ="neutral ">
11191115 + Add Parameter
11201116 </ sl-button >
11211117 ${ this . renderUDAAddParamBtnOptions ( ) }
@@ -1341,6 +1337,15 @@ export class KdbDataSourceView extends LitElement {
13411337 ` ;
13421338 }
13431339
1340+ getUDAInputWidth ( type : string ) {
1341+ switch ( type ) {
1342+ case "datetime-local" :
1343+ return "width-30-pct" ;
1344+ default :
1345+ return "width-100-pct" ;
1346+ }
1347+ }
1348+
13441349 renderUDAInput ( param : UDAParam , inputType : string ) {
13451350 const validInputTypes = [ "text" , "number" , "datetime-local" ] ;
13461351 const type = validInputTypes . includes ( inputType ) ? inputType : "text" ;
@@ -1354,7 +1359,7 @@ export class KdbDataSourceView extends LitElement {
13541359 ? "width-90-pct"
13551360 : "width-97-pct" } row align-top ">
13561361 < sl-input
1357- class ="reset-widths-limit width-100-pct "
1362+ class ="reset-widths-limit ${ this . getUDAInputWidth ( type ) } "
13581363 .type ="${ type as
13591364 | "number"
13601365 | "date"
@@ -1422,7 +1427,7 @@ export class KdbDataSourceView extends LitElement {
14221427 default :
14231428 return html `
14241429 < sl-input
1425- class ="reset-widths-limit width-70-pct "
1430+ class ="reset-widths-limit ${ this . getUDAInputWidth ( inputType ) } "
14261431 .label ="Selected type: ${ selectedType } "
14271432 .type ="${ ( inputType === "multitype" ? "text" : inputType ) as
14281433 | "number"
0 commit comments