Skip to content

Commit

Permalink
fix(design): Result 500 image and content border-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Mar 14, 2024
1 parent f1f57a2 commit 99b9d92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/design/src/result/500.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Svg500 = () => (
>
<defs>
<rect
id="path-1"
id="oceanbase-design-result-500-path-1"
x="23.4314575"
y="23.4314575"
width="113.137085"
Expand Down Expand Up @@ -43,9 +43,12 @@ const Svg500 = () => (
rx="1.20848995"
></rect>
</g>
<g id="Clipped" transform="translate(0, 0)">
<g transform="translate(0, 0)">
<mask id="oceanbase-design-result-500-mask-2" fill="white">
<use transform="translate(80, 80) rotate(-45) translate(-80, -80)"></use>
<use
xlinkHref="#oceanbase-design-result-500-path-1"
transform="translate(80, 80) rotate(-45) translate(-80, -80)"
></use>
</mask>
<g transform="translate(80, 80) rotate(-45) translate(-80, -80)"></g>
<g mask="url(#oceanbase-design-result-500-mask-2)">
Expand Down
1 change: 1 addition & 0 deletions packages/design/src/result/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const genResultStyle: GenerateStyle<ResultToken> = (token: ResultToken):
[`${componentCls}`]: {
[`${componentCls}-content`]: {
padding: token.paddingLG,
borderRadius: token.borderRadiusLG,
},
},
};
Expand Down

0 comments on commit 99b9d92

Please sign in to comment.