File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -167,26 +167,32 @@ export const AlertBox = memo(function AlertBox({
167
167
className
168
168
) }
169
169
>
170
- < div className = "flex items-start gap-3" >
170
+ < div className = "flex flex-wrap items-start gap-3" >
171
171
{ /* Alert icon */ }
172
- < div className = "mt-0.5" aria-hidden = "true" >
172
+ < div className = "mt-0.5 shrink-0 " aria-hidden = "true" >
173
173
< Icon className = { `h-5 w-5 ${ styles . icon } ` } />
174
174
</ div >
175
+
175
176
{ /* Alert content */ }
176
177
< motion . div
177
- className = "flex-1"
178
+ className = "flex-1 min-w-0 "
178
179
initial = { { opacity : 0 } }
179
180
animate = { { opacity : 1 } }
180
181
transition = { { delay : 0.1 , duration : 0.2 } }
181
182
>
182
- { /* Alert title */ }
183
183
{ ( title || defaultTitle ) && (
184
- < h5 className = { `mb-1 font-semibold ${ styles . title } ` } > { title || defaultTitle } </ h5 >
184
+ < h5 className = { `mb-1 font-semibold text-sm md:text-base ${ styles . title } ` } >
185
+ { title || defaultTitle }
186
+ </ h5 >
185
187
) }
186
- { /* Main alert text */ }
187
- < div className = { `prose-sm ${ styles . text } ` } > { children } </ div >
188
+ < div
189
+ className = { `prose-sm md:prose-base break-words overflow-x-auto max-w-full ${ styles . text } ` }
190
+ >
191
+ { children }
192
+ </ div >
188
193
</ motion . div >
189
194
</ div >
195
+
190
196
</ motion . div >
191
197
) ;
192
198
} ) ;
You can’t perform that action at this time.
0 commit comments