File tree Expand file tree Collapse file tree
ui/src/app/components/options Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11< div fxLayout ="column " fxLayoutAlign ="space-around start " fxLayoutGap ="10px ">
22 < div *ngFor ="let row of options " fxLayout ="row " style ="width: 100% " fxLayoutGap ="10px " fxLayoutAlign ="space-between center ">
3- < div *ngFor ="let option of row " [fxFlex] =" 100 / row.length " [ ngStyle] ="getOptionStyle(option) ">
3+ < div *ngFor ="let option of row " [ngStyle] ="getOptionStyle(option) ">
44 <!-- Checkbox -->
55 < div *ngIf ="option.type === 'checkbox' "
66 fxLayout ="row " fxLayoutAlign ="center center " fxFill fxLayoutGap ="10px "
Original file line number Diff line number Diff line change @@ -136,8 +136,11 @@ export class OptionsComponent {
136136 public ref : ChangeDetectorRef
137137 ) { }
138138
139- getOptionStyle ( option : Option ) {
139+ getOptionStyle ( option : Option , row : Option [ ] ) {
140140 let style = option . style || { }
141+ if ( ! style . width ) {
142+ style . width = `${ 100 / row . length } %`
143+ }
141144 if ( option . type === 'button' ) {
142145 style . width = '100%'
143146 }
You can’t perform that action at this time.
0 commit comments