Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/drawers/add-helper-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export function AddHelperDrawer({ isOpen, onClose, projectId, onSubmit }: AddHel
title="Add new helper"
width="w-[440px]"
className="shadow-2xl"
footerClassName="border-t-0"
footer={
<div className="flex gap-3">
<Button
Expand Down
7 changes: 6 additions & 1 deletion src/components/ui/drawer-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export interface DrawerPanelProps {
backdropClassName?: string
/** Extra class for the panel container */
className?: string
/** Extra class for the footer wrapper (e.g. border-t-0 to remove the divider) */
footerClassName?: string
}

/**
Expand All @@ -39,6 +41,7 @@ export function DrawerPanel({
width = "w-96",
backdropClassName = "bg-black/20",
className,
footerClassName,
}: DrawerPanelProps) {
if (!isOpen) return null

Expand Down Expand Up @@ -82,7 +85,9 @@ export function DrawerPanel({
)}
<div className="flex-1 flex flex-col min-h-0">{children}</div>
{footer != null && (
<div className="px-6 py-4 border-t border-border flex-shrink-0">{footer}</div>
<div className={cn("px-6 py-4 border-t border-border flex-shrink-0", footerClassName)}>
{footer}
</div>
)}
</div>
</>
Expand Down