Skip to content

Commit

Permalink
fix: only put width: max-content where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Sep 6, 2023
1 parent 8cec1b8 commit b647f6a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions libs/tup-components/src/mfa/Mfa.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
margin-top: 30px; /* match .mfa-success-container button */
}

.mfa-message {
/* So OTP code copy field will not stretch to fill narrow-width screen */
width: max-content;
}

.field-error {
/* So message with very little text still appears beneath input */
display: flex;
Expand Down Expand Up @@ -126,6 +121,12 @@ label.qr-code-alt-label {
padding-bottom: var(--space-below-panel-for-message);
}

/* To not let message content stretch wider than necessary */
/* FAQ: A TextCopyField in a message would stretch as wide as possible */
.mfa-message {
width: max-content;
}

/* HACK: Position .mfa-message at the bottom and "outside" of the panels */
.pairing-container *:not(:only-child) .mfa-message {
/* To position message beneath both paring steps */
Expand Down

0 comments on commit b647f6a

Please sign in to comment.