Skip to content

Commit

Permalink
fix: add className
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Jun 18, 2024
1 parent d6e8214 commit 532d466
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions packages/ui/src/drag-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,18 @@ export function DragPanel({
}}
overlay={
<Draggable
handle=".selection-drag-bar"
handle=".drag-panel-header"
onStart={() => {
injectStyleToBody();
}}
>
<DragPanelContainer width={width} height={height} resizeable={resizeable}>
<DragPanelHeader className="selection-drag-bar">
<DragPanelContainer
className="drag-panel"
width={width}
height={height}
resizeable={resizeable}
>
<DragPanelHeader className="drag-panel-header">
<Box fontSize="12px" color="text2">
<IconFont type="icon-applications" />
<Text marginLeft={'5px'}>{title}</Text>
Expand All @@ -152,7 +157,9 @@ export function DragPanel({
</Box>
</DragPanelHeader>
<DragPanelBody className="drag-panel-body">{body}</DragPanelBody>
{footer && <DragPanelFooter>{footerNode}</DragPanelFooter>}
{footer && (
<DragPanelFooter className="drag-panel-footer">{footerNode}</DragPanelFooter>
)}
</DragPanelContainer>
</Draggable>
}
Expand Down

0 comments on commit 532d466

Please sign in to comment.