In CSS, the flex-wrap property is used in a flex container to control
how flex items are laid out when there is not enough space in a single
line.
If a modal is displayed on small screens, the buttons are not wrapped. They
remain on one line. This breaks the layout and does not look good.
Signed-off-by: Florian Eckert <[email protected]>
.modal > .button-row {
display: flex;
justify-content: space-between;
+ flex-wrap: wrap;
}
.modal > .button-row > button:not(:last-of-type) {
.modal .button-row {
display: flex;
justify-content: space-between;
+ flex-wrap: wrap;
}
.modal .button-row > button:not(:first-of-type) {
.modal .button-row {
display: flex;
justify-content: space-between;
+ flex-wrap: wrap;
}
.modal .button-row > :not(:last-child) {
.modal .button-row {
display: flex;
justify-content: space-between;
+ flex-wrap: wrap;
}
.modal .button-row > :not(:last-child) {