Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit c4fc99f

Browse files
committed
make dropdowns be full width
1 parent edac55f commit c4fc99f

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

scriptedforms/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@simonbiggs/scriptedforms",
3-
"version": "0.10.0-dev0",
3+
"version": "0.10.0-dev1",
44
"license": "AGPL-3.0+",
55
"repository": {
66
"type": "git",

scriptedforms/src/app/variables-module/dropdown.component.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ import { VariableParameterComponent } from './variable-parameter.component';
3737
<ng-content></ng-content>
3838
</span>
3939
<variable-parameter #variableParameterComponent *ngIf="items">{{items}}</variable-parameter>
40-
<mat-form-field>
40+
<mat-form-field class="variableDropdown">
4141
<mat-label>{{labelValue}}</mat-label>
42-
<mat-select
42+
<mat-select class="variableDropdown"
4343
[required]="required"
4444
[disabled]="!isFormReady"
4545
[placeholder]="placeholder"
@@ -61,7 +61,12 @@ import { VariableParameterComponent } from './variable-parameter.component';
6161
&lt;/variable-dropdown&gt;
6262
</span>
6363
</pre>
64-
</div>`})
64+
</div>`,
65+
styles: [
66+
`.variableDropdown {
67+
width: 100%;
68+
}
69+
`]})
6570
export class DropdownComponent extends VariableBaseComponent
6671
implements AfterViewInit {
6772
deprecatedOptions: (string | number)[] = [];

0 commit comments

Comments
 (0)