diff --git a/packages/image-tiptap/.changeset/wet-tools-notice.md b/packages/image-tiptap/.changeset/wet-tools-notice.md new file mode 100644 index 0000000..a9748f3 --- /dev/null +++ b/packages/image-tiptap/.changeset/wet-tools-notice.md @@ -0,0 +1,5 @@ +--- +"@harshtalks/image-tiptap": patch +--- + +added margin 0 to left and right alignment diff --git a/packages/image-tiptap/src/utils.ts b/packages/image-tiptap/src/utils.ts index ab60a63..cdb1a9b 100644 --- a/packages/image-tiptap/src/utils.ts +++ b/packages/image-tiptap/src/utils.ts @@ -2,7 +2,7 @@ import type { Alignment } from "./types"; // This will be used to calculate the alignment of the data in the table export const alignmentVariants: Record = { - center: `margin: auto auto`, - left: `margin-right: auto`, - right: `margin-left: auto`, + center: `margin: 0 auto;`, + left: `margin-right: auto; margin-top: 0;`, + right: `margin-left: auto; margin-top: 0;`, }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d617132..6805950 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,10 +22,10 @@ importers: dependencies: '@harshtalks/image-tiptap': specifier: workspace:* - version: link:../../packages/tiptap-image + version: link:../../packages/image-tiptap '@harshtalks/slash-tiptap': specifier: workspace:* - version: link:../../packages/tiptap-slash + version: link:../../packages/slash-tiptap '@tailwindcss/typography': specifier: ^0.5.15 version: 0.5.15(tailwindcss@3.4.13(ts-node@10.9.1(@types/node@20.11.24)(typescript@5.6.2))) @@ -100,7 +100,7 @@ importers: specifier: ^5.3.3 version: 5.3.3 - packages/tiptap-image: + packages/image-tiptap: dependencies: '@radix-ui/react-slot': specifier: ^1.1.0 @@ -143,7 +143,7 @@ importers: specifier: latest version: 5.6.2 - packages/tiptap-slash: + packages/slash-tiptap: dependencies: '@tiptap/pm': specifier: ^2.7.2