File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
packages/fractal/src/components/Popover Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -297,20 +297,27 @@ export const Popover = forwardRef<CombinedRefs, PopoverProps>(
297
297
{ ( withCloseButton || ! isEmpty ( title ) ) && (
298
298
< div
299
299
className = { cj (
300
- 'flex flex-row items-center justify-between' ,
301
- ! isEmpty ( title ) ? 'mb-1 ' : '' ,
300
+ 'flex flex-row items-center justify-between gap-1 ' ,
301
+ ! isEmpty ( title ) ? 'mb-2 ' : '' ,
302
302
) }
303
303
>
304
304
{ ! isEmpty ( title ) && (
305
- < Typography variant = "body-1-bold" > { title } </ Typography >
305
+ < Typography className = "w-full" variant = "body-1-bold" >
306
+ { title }
307
+ </ Typography >
306
308
) }
307
309
308
310
{ withCloseButton && (
309
311
< RxPopover . Close
310
312
asChild
311
313
className = { cj ( `${ PREFIX } -${ GROUP_NAME } __close` ) }
312
314
>
313
- < div className = "mt-half flex size-full items-center justify-end text-right" >
315
+ < div
316
+ className = { cj (
317
+ 'flex items-center justify-end text-right' ,
318
+ isEmpty ( title ) ? 'w-full' : '' ,
319
+ ) }
320
+ >
314
321
< Button
315
322
icon = { < CloseIcon /> }
316
323
iconOnly
You can’t perform that action at this time.
0 commit comments