diff --git a/src/sql/parts/modelComponents/formContainer.component.ts b/src/sql/parts/modelComponents/formContainer.component.ts index 7f6bfd5784..fe0e876713 100644 --- a/src/sql/parts/modelComponents/formContainer.component.ts +++ b/src/sql/parts/modelComponents/formContainer.component.ts @@ -37,34 +37,34 @@ class FormItem {
{{getItemTitle(item)}}
-
- - -
-
-
-
- +
+
+
+
+
+ + + + +
- -
{{getItemTitle(item)}}
+
+
{{getItemTitle(item)}}
-
- -
- - +
+
+ + +
- -
- +
@@ -118,12 +118,12 @@ export default class FormContainer extends ContainerBase impleme private getFormWidth(item: FormItem): string { let itemConfig = item.config; - return itemConfig && itemConfig.width ? +itemConfig.width + 'px' : '400px'; + return itemConfig && itemConfig.width ? +itemConfig.width + 'px' : '100%'; } private getComponentWidth(item: FormItem): string { let itemConfig = item.config; - return itemConfig ? itemConfig.componentWidth + 'px' : ''; + return (itemConfig && itemConfig.componentWidth) ? itemConfig.componentWidth + 'px' : ''; } private getItemTitle(item: FormItem): string { diff --git a/src/sql/parts/modelComponents/formLayout.css b/src/sql/parts/modelComponents/formLayout.css index 8c1687a40d..e45fa54520 100644 --- a/src/sql/parts/modelComponents/formLayout.css +++ b/src/sql/parts/modelComponents/formLayout.css @@ -1,36 +1,47 @@ .form-table { - width:400px; - display:table; - padding: 30px; + width: 100%; + display: table; + padding: 10px 30px 0px 30px; + box-sizing: border-box; } .form-actions-table { - display:table; + display: table; } .form-row { display: table-row; - width: 100px; - padding-bottom: 10px; } .form-item-row { padding-bottom: 5px; - width: 300px; } -.form-item-title { - - padding-top: 20px; +.form-vertical-container { + padding-bottom: 15px; + width: 100%; } .form-cell { - padding-top: 20px; + padding-bottom: 20px; padding-right: 5px; display: table-cell; } +.form-component-container { + display: flex; + flex-direction: row; +} + +.form-input-flex { + flex: 1; +} + +.form-component-actions { + padding-left: 5px; +} + .form-actions-cell { padding-top: 5px; padding-right: 5px;