Skip to content

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

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

artzhookov
Copy link
Contributor

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:
before

after:
after

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).
@artzhookov artzhookov requested a review from a team as a code owner July 26, 2024 14:22
@artzhookov artzhookov changed the title Fix form width on mobile devices fix(feedback): Fix form width on mobile devices Jul 26, 2024
@@ -111,7 +111,7 @@ const FORM = `

@media (max-width: 600px) {
.form__right {
width: auto;
--form-width: 100%;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--form-width: 100%;
width: var(--form-width, 100%);

Copy link
Contributor Author

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
@c298lee c298lee merged commit e0015c5 into getsentry:develop Sep 17, 2024
119 checks passed
@c298lee c298lee mentioned this pull request Sep 17, 2024
3 tasks
mydea pushed a commit that referenced this pull request Sep 18, 2024
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]>
@AbhiPrasad
Copy link
Member

@artzhookov thanks for the PR! This was released with https://github.com/getsentry/sentry-javascript/releases/tag/8.31.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants