Skip to content

Commit

Permalink
fix: add container to wrap title and drag handle, issue running-eleph…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuiyansong committed Aug 17, 2022
1 parent 21609cf commit 762e86d
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ export const TreeItem: FC<{ node: LayerNode }> = memo(({ node }) => {

return (
<Item>
<h4 title={title as string}>{String(title) || 'untitled-widget'}</h4>
<WidgetDndHandleMask widgetId={widget?.id} canWrapped={canWrapped} />
<TitleBlock>
<h4 title={title as string}>{String(title) || 'untitled-widget'}</h4>
<WidgetDndHandleMask widgetId={widget?.id} canWrapped={canWrapped} />
</TitleBlock>
<WidgetDropdownList
widget={widget}
buttonProps={{
Expand Down Expand Up @@ -101,3 +103,8 @@ const Item = styled.div`
}
}
`;

const TitleBlock = styled.div`
position: relative;
width: 100%;
`;

0 comments on commit 762e86d

Please sign in to comment.