Skip to content

Commit

Permalink
Merge pull request #549 from Stremio/fix--mobile-modal-buttons-styling
Browse files Browse the repository at this point in the history
fix: Modal styles on mobile where there are 3 buttons present
  • Loading branch information
tymmesyde authored Jan 3, 2024
2 parents 206402f + dd38bf1 commit ca4b582
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/common/ModalDialog/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
}
}
}

.action-button {
flex: 1;
display: flex;
Expand Down Expand Up @@ -126,7 +127,6 @@
text-align: center;
color: var(--primary-foreground-color);
}

}

@media only screen and (max-width: @minimum) {
Expand All @@ -137,6 +137,20 @@
max-width: initial;
z-index: 0;
padding: 0 1.5rem;

.buttons-container {
flex-direction: column;
gap: 1rem;
}
}

.action-button {
width: 100%;

.label {
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}

0 comments on commit ca4b582

Please sign in to comment.