Skip to content

Commit

Permalink
Merge pull request #93 from devtron-labs/vite_exploration-bugs
Browse files Browse the repository at this point in the history
fix: Vite exploration bugs
  • Loading branch information
shivani170 authored Feb 12, 2024
2 parents c509981 + cbb81e0 commit 6e487b0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 27 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtron-labs/devtron-fe-common-lib",
"version": "0.0.63-beta-6",
"version": "0.0.63-beta-7",
"description": "Supporting common component library",
"type": "module",
"main": "dist/index.js",
Expand Down
46 changes: 22 additions & 24 deletions src/Common/AddCDButton/AddCDButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,28 @@ export default function AddCDButton({
className="default-tt"
arrow={false}
>
<div>
<svg
x={referenceNode.x + (position === AddCDPositions.RIGHT ? -20 - 5 : referenceNode.width + 5)}
// Here 10 is the height of the button / 2
y={referenceNode.y + referenceNode.height / 2 - 10}
width="20"
height="20"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid={`add-cd-to-${position}`}
onClick={handleAddCDClick}
className="dc__outline-none-imp"
>
<rect width="20" height="20" rx="10" fill="#664BEE" className="add-cd-edge-btn" />
<path
d="M6.5 10H13.5M10 6.5V13.5"
stroke="white"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</div>
<svg
x={referenceNode.x + (position === AddCDPositions.RIGHT ? -20 - 5 : referenceNode.width + 5)}
// Here 10 is the height of the button / 2
y={referenceNode.y + referenceNode.height / 2 - 10}
width="20"
height="20"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid={`add-cd-to-${position}`}
onClick={handleAddCDClick}
className="dc__outline-none-imp"
>
<rect width="20" height="20" rx="10" fill="#664BEE" className="add-cd-edge-btn" />
<path
d="M6.5 10H13.5M10 6.5V13.5"
stroke="white"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</Tippy>
)
}
Expand Down

0 comments on commit 6e487b0

Please sign in to comment.