Skip to content

Commit

Permalink
fix(feeback): Handle css correctly in screenshot mode (#14535)
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome authored Dec 2, 2024
1 parent 3fdab04 commit 44477df
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions packages/feedback/src/modal/components/Dialog.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const DIALOG = `
gap: 16px;
padding: var(--dialog-padding, 24px);
max-width: 100%;
width: var(--form-width, 272px);
width: 100%;
max-height: 100%;
overflow: auto;
Expand All @@ -72,12 +72,6 @@ const DIALOG = `
transition: transform 0.2s ease-in-out;
}
@media (max-width: 600px) {
.dialog__content {
width: var(--form-width, 100%);
}
}
`;

const DIALOG_HEADER = `
Expand All @@ -90,7 +84,20 @@ const DIALOG_HEADER = `
}
.dialog__title {
align-self: center;
width: var(--form-width, 272px);
}
@media (max-width: 600px) {
.dialog__title {
width: auto;
}
}
.dialog__position:has(.editor) .dialog__title {
width: auto;
}
.brand-link {
display: inline-flex;
}
Expand All @@ -115,7 +122,11 @@ const FORM = `
flex-direction: column;
justify-content: space-between;
gap: 20px;
width: 100%;
width: var(--form-width, 100%);
}
.dialog__position:has(.editor) .form__right {
width: var(--form-width, 272px);
}
.form__top {
Expand Down

0 comments on commit 44477df

Please sign in to comment.