Skip to content

Commit ec50869

Browse files
committed
feat(corner-ornament): final impl
1 parent d42eb46 commit ec50869

File tree

3 files changed

+654
-39
lines changed

3 files changed

+654
-39
lines changed

packages/paste-core/components/corner-ornament/__tests__/index.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe("CornerOrnament", () => {
4242

4343
it("should throw errors for unsupported size and type combinations", () => {
4444
expect(() => {
45-
render(<ExampleCornerOrnament size="sizeIcon30" type="avatar" />);
45+
render(<ExampleCornerOrnament size="sizeIcon10" type="icon" />);
4646
}).toThrow();
4747
});
4848

packages/paste-core/components/corner-ornament/src/mappings.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export const OrnamentPositionStyleMappings: Record<
6060
sizeIcon70: { left: "19px", top: "19px" },
6161
sizeIcon80: { left: "25px", top: "25px" },
6262
sizeIcon90: { left: "25px", top: "25px" },
63+
sizeIcon100: { left: "34px", top: "34px" },
6364
sizeIcon110: { left: "42px", top: "42px" },
6465
},
6566
top_end: {
@@ -68,6 +69,7 @@ export const OrnamentPositionStyleMappings: Record<
6869
sizeIcon70: { left: "19px", bottom: "19px", top: "-7px" },
6970
sizeIcon80: { left: "25px", bottom: "25px", top: "-5px" },
7071
sizeIcon90: { left: "25px", bottom: "25px", top: "-5px" },
72+
sizeIcon100: { left: "34px", bottom: "34px", top: "-6px" },
7173
sizeIcon110: { left: "42px", bottom: "42px", top: "-2px" },
7274
},
7375
},

0 commit comments

Comments
 (0)