From e0015c51438afa797806de2d7136a5a2bbd4938b Mon Sep 17 00:00:00 2001 From: Artem Zhukov Date: Tue, 17 Sep 2024 22:26:28 +0300 Subject: [PATCH] fix(feedback): Fix form width on mobile devices (#13068) 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 --------- Co-authored-by: Catherine Lee <55311782+c298lee@users.noreply.github.com> --- packages/feedback/src/modal/components/Dialog.css.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/feedback/src/modal/components/Dialog.css.ts b/packages/feedback/src/modal/components/Dialog.css.ts index 576044578247..fc0e00580a5d 100644 --- a/packages/feedback/src/modal/components/Dialog.css.ts +++ b/packages/feedback/src/modal/components/Dialog.css.ts @@ -100,7 +100,7 @@ const FORM = ` } .form__right { - flex: 0 0 var(--form-width, 272px); + flex: 0 0 auto; width: var(--form-width, 272px); display: flex; overflow: auto; @@ -111,7 +111,7 @@ const FORM = ` @media (max-width: 600px) { .form__right { - width: auto; + width: var(--form-width, 100%); } }