Angular Material - Why is my md-button full-width?
Just wrap it in another div
if this is undesired. The flex-direction of <div layout="column">
seems to be responsible for the behavior.
Material button size responsive
You can use the property wrap
of Flex:
https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
So when there is no more space for the html elements inside the div
, it will re-order the elements in order all the elements get into the div
.
In your case, you should do:
<div fxLayout="row wrap" fxLayoutAlign="space-between">
<mat-form-field>
<mat-select [formControl]="filterchips" multiple placeholder="Filter by tags">
<mat-select-trigger>
...
</mat-select-trigger>
<mat-option *ngFor="..." [value]="..." (click)="...">
{{ ... }}
</mat-option>
</mat-select>
</mat-form-field>
<div style="height: 70%; width: 70%;" style="display: block">
<button [disabled]="isDisabled" mat-raised-button color="primary" (click)="..." >APPLY FILTER</button><br>
</div>
</div>
Check the Angular Flex Layout documentation about wrap
:
https://github.com/angular/flex-layout/wiki/fxLayout-API#fxlayout--wrap
Related Topics
Convert Milliseconds to Hours and Minutes Using Momentjs
React-Native: Convert Image Url to Base64 String
How to Array Filter With Multiple Condition in JavaScript
Angular - Displaying Object Within Object in Json
Accessing Ejs Variable in JavaScript Logic
Javascript/Regex: Remove Text Between Parentheses
Hierarchical Json from Flat With Parent Id
Javascript Regex - No White Space At Beginning + Allow Space in the Middle
Pass Parameter from Input to Onclick Method
Move Items in Ul Li Up and Down
How to Reload the Page Without the Query Parameters
How to Store Data After Refreshing the Web Page
Why Does This Onclick Event Not Work in an HTML Iframe
Open a Component in New Window on a Click in React
Sequelize How to Check If Entry Exists in Database
How to Get Field Value on Change for Formitem in Antd
How to Know If Two Arrays Have the Same Values
How to Remove All Null and Empty String Values from an Object