Skip to content

Commit 44477df

Browse files
authored
fix(feeback): Handle css correctly in screenshot mode (#14535)
1 parent 3fdab04 commit 44477df

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

Diff for: packages/feedback/src/modal/components/Dialog.css.ts

+19-8
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const DIALOG = `
6060
gap: 16px;
6161
padding: var(--dialog-padding, 24px);
6262
max-width: 100%;
63-
width: var(--form-width, 272px);
63+
width: 100%;
6464
max-height: 100%;
6565
overflow: auto;
6666
@@ -72,12 +72,6 @@ const DIALOG = `
7272
transition: transform 0.2s ease-in-out;
7373
}
7474
75-
@media (max-width: 600px) {
76-
.dialog__content {
77-
width: var(--form-width, 100%);
78-
}
79-
}
80-
8175
`;
8276

8377
const DIALOG_HEADER = `
@@ -90,7 +84,20 @@ const DIALOG_HEADER = `
9084
}
9185
.dialog__title {
9286
align-self: center;
87+
width: var(--form-width, 272px);
9388
}
89+
90+
@media (max-width: 600px) {
91+
.dialog__title {
92+
width: auto;
93+
}
94+
}
95+
96+
.dialog__position:has(.editor) .dialog__title {
97+
width: auto;
98+
}
99+
100+
94101
.brand-link {
95102
display: inline-flex;
96103
}
@@ -115,7 +122,11 @@ const FORM = `
115122
flex-direction: column;
116123
justify-content: space-between;
117124
gap: 20px;
118-
width: 100%;
125+
width: var(--form-width, 100%);
126+
}
127+
128+
.dialog__position:has(.editor) .form__right {
129+
width: var(--form-width, 272px);
119130
}
120131
121132
.form__top {

0 commit comments

Comments
 (0)