-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(feedback): Fix form width on mobile devices #13068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
On mobile devices, the form looked narrow due to the unspecified value of the css variable --form-width. I set it to 100% for mobile devices and this stretched the form to the full width (see before/after screenshots).
@@ -111,7 +111,7 @@ const FORM = ` | |||
|
|||
@media (max-width: 600px) { | |||
.form__right { | |||
width: auto; | |||
--form-width: 100%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--form-width: 100%; | |
width: var(--form-width, 100%); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, you're right, it's better this way!
But I corrected the css a little more and set flex: 0 0 auto
.
In this case, if width is specified, it will be used.
Minus one copy-paste env().
Improve css by using flex-basis: auto and width
This PR adds the external contributor to the CHANGELOG.md file, so that they are credited for their contribution. See #13068 Co-authored-by: c298lee <[email protected]>
@artzhookov thanks for the PR! This was released with https://github.com/getsentry/sentry-javascript/releases/tag/8.31.0 |
On mobile devices, the form looked narrow due to the unspecified value of the css variable --form-width. I set it to 100% for mobile devices and this stretched the form to the full width (see before/after screenshots).
before:

after:
