File tree 2 files changed +14
-11
lines changed
packages/feedback/src/modal/components
2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ const DIALOG = `
60
60
gap: 16px;
61
61
padding: var(--dialog-padding, 24px);
62
62
max-width: 100%;
63
- width: 100% ;
63
+ width: var(--form-width, 272px) ;
64
64
max-height: 100%;
65
65
overflow: auto;
66
66
@@ -71,17 +71,26 @@ const DIALOG = `
71
71
transform: translate(0, 0) scale(1);
72
72
transition: transform 0.2s ease-in-out;
73
73
}
74
+
75
+ @media (max-width: 600px) {
76
+ .dialog__content {
77
+ width: var(--form-width, 100%);
78
+ }
79
+ }
80
+
74
81
` ;
75
82
76
83
const DIALOG_HEADER = `
77
84
.dialog__header {
78
85
display: flex;
79
- align-items: center ;
86
+ gap: 4px ;
80
87
justify-content: space-between;
81
88
font-weight: var(--dialog-header-weight, 600);
82
89
margin: 0;
83
90
}
84
-
91
+ .dialog__title {
92
+ align-self: center;
93
+ }
85
94
.brand-link {
86
95
display: inline-flex;
87
96
}
@@ -101,18 +110,12 @@ const FORM = `
101
110
102
111
.form__right {
103
112
flex: 0 0 auto;
104
- width: var(--form-width, 272px);
105
113
display: flex;
106
114
overflow: auto;
107
115
flex-direction: column;
108
116
justify-content: space-between;
109
117
gap: 20px;
110
- }
111
-
112
- @media (max-width: 600px) {
113
- .form__right {
114
- width: var(--form-width, 100%);
115
- }
118
+ width: 100%;
116
119
}
117
120
118
121
.form__top {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export function DialogHeader({ options }: Props): VNode {
14
14
15
15
return (
16
16
< h2 class = "dialog__header" >
17
- { options . formTitle }
17
+ < span class = "dialog__title" > { options . formTitle } </ span >
18
18
{ options . showBranding ? (
19
19
< a
20
20
class = "brand-link"
You can’t perform that action at this time.
0 commit comments