mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
fix(label): change the flex for stacked and floating labels so buttons can be added
fixes #5319
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
<ion-item>
|
||||
<ion-label stacked>Label 2</ion-label>
|
||||
<ion-input value="Text 2"></ion-input>
|
||||
<button item-right clear><ion-icon name="heart"></ion-icon></button>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
|
@ -34,10 +34,9 @@ ion-label[fixed] {
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.item-label-stacked,
|
||||
.item-label-floating {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
.item-label-stacked .item-inner,
|
||||
.item-label-floating .item-inner {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
ion-label[stacked],
|
||||
@ -45,6 +44,7 @@ ion-label[floating] {
|
||||
align-self: stretch;
|
||||
margin-bottom: 0;
|
||||
max-width: 100%;
|
||||
flex-basis: 100%;
|
||||
}
|
||||
|
||||
ion-label[stacked],
|
||||
|
Reference in New Issue
Block a user