Skip to content

Commit

Permalink
✨ feat: border radius edge
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu authored and ModestFun committed Sep 20, 2023
1 parent 5b05c97 commit c37f237
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
pluginSearchDirs: false,
plugins: [
// require.resolve('prettier-plugin-organize-imports'),
require.resolve('prettier-plugin-organize-imports'),
require.resolve('prettier-plugin-packagejson'),
],
printWidth: 100,
Expand Down
1 change: 0 additions & 1 deletion src/BasicEdge/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { BaseEdge, EdgeProps, getSmoothStepPath } from 'reactflow';

export default function RadiusEdge({
Expand Down
16 changes: 7 additions & 9 deletions src/BloodGroupNode/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ export const useStyles = createStyles(({ css }) => ({
align-items: center;
padding-top: 16px;
overflow: hidden;
border: none;
box-shadow: none;
background-color: #fafafa;
box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 8%);
border: 1px solid #d9d9d9;
border-radius: 8px;
position: absolute;
background-color: #f9f9f9;
z-index: 10;
border-radius: 12px;
`,
btnWrap: css`
width: 100%;
Expand Down Expand Up @@ -58,11 +56,11 @@ export const useStyles = createStyles(({ css }) => ({
box-sizing: border-box;
padding: 16px 12px;
background-color: white;
background: #fff;
border: 1px solid #f4f4f4;
border-radius: 8px;
margin-bottom: 24px;
box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 8%);
background: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.04);
border-radius: 8px;
box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 6px -2 rgba(25, 15, 15, 0.05);
&:last-child {
opacity: 0.5;
Expand Down

0 comments on commit c37f237

Please sign in to comment.