Skip to content

Commit c37f237

Browse files
jiangchuModestFun
authored andcommitted
✨ feat: border radius edge
1 parent 5b05c97 commit c37f237

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
pluginSearchDirs: false,
33
plugins: [
4-
// require.resolve('prettier-plugin-organize-imports'),
4+
require.resolve('prettier-plugin-organize-imports'),
55
require.resolve('prettier-plugin-packagejson'),
66
],
77
printWidth: 100,

src/BasicEdge/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import { BaseEdge, EdgeProps, getSmoothStepPath } from 'reactflow';
32

43
export default function RadiusEdge({

src/BloodGroupNode/styles.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ export const useStyles = createStyles(({ css }) => ({
1010
align-items: center;
1111
padding-top: 16px;
1212
overflow: hidden;
13-
border: none;
14-
box-shadow: none;
15-
background-color: #fafafa;
16-
box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 8%);
13+
border: 1px solid #d9d9d9;
14+
border-radius: 8px;
1715
position: absolute;
16+
background-color: #f9f9f9;
1817
z-index: 10;
19-
border-radius: 12px;
2018
`,
2119
btnWrap: css`
2220
width: 100%;
@@ -58,11 +56,11 @@ export const useStyles = createStyles(({ css }) => ({
5856
box-sizing: border-box;
5957
padding: 16px 12px;
6058
background-color: white;
61-
background: #fff;
62-
border: 1px solid #f4f4f4;
63-
border-radius: 8px;
6459
margin-bottom: 24px;
65-
box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 8%);
60+
background: #ffffff;
61+
border: 1px solid rgba(255, 255, 255, 0.04);
62+
border-radius: 8px;
63+
box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 6px -2 rgba(25, 15, 15, 0.05);
6664
6765
&:last-child {
6866
opacity: 0.5;

0 commit comments

Comments
 (0)