Skip to content

Commit

Permalink
fix: change mfa panel width at viewport widths
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Sep 6, 2023
1 parent ddc9afa commit bd8007b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libs/tup-components/src/mfa/Mfa.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
}

.pairing-container > *:not(.pairing-separator) {
width: 365px; /* FAQ: static width, so .mfa-message is centered */
/* To let panels easily become equal width so .mfa-message is centered */
/* FAQ: Using a var makes width easy to change (e.g. in a @media query) */
width: var(--panel-width, auto);
}

.pairing-separator {
Expand Down Expand Up @@ -88,6 +90,12 @@ label.qr-code-alt-label {


/* Responsive layout */
@media screen and (--medium-to-wide) {
.pairing-container { --panel-width: 330px; }
}
@media screen and (--wide-and-above) {
.pairing-container { --panel-width: 365px; }
}
@media screen and (--medium-and-above) {
.pairing-container {
/* To layout items on one left-aligned row */
Expand Down

0 comments on commit bd8007b

Please sign in to comment.