Skip to content

Commit

Permalink
fix(panel): add space fitter
Browse files Browse the repository at this point in the history
add free space fitter to the panel header
  • Loading branch information
dqunbp committed Oct 27, 2023
1 parent b55ef35 commit aae9355
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ui-kit/src/Panel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export function Panel({
<button className={cn(s.close, classes?.closeBtn)}>{isOpen ? <ChevronUp24 /> : <ChevronDown24 />}</button>
)}

<div style={{ flex: 1 }}></div>

{customControls?.map((control) => (
<button className={cn(s.close, classes?.closeBtn)} onClick={control.onWrapperClick} key={nanoid(4)}>
{control.icon}
Expand Down

0 comments on commit aae9355

Please sign in to comment.