Skip to content

Commit

Permalink
docs(changeset): added margin 0 to left and right alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
harshtalks committed Sep 26, 2024
1 parent 45ec93b commit 7c59fc8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions packages/image-tiptap/.changeset/wet-tools-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@harshtalks/image-tiptap": patch
---

added margin 0 to left and right alignment
6 changes: 3 additions & 3 deletions packages/image-tiptap/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Alignment, string> = {
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;`,
};
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c59fc8

Please sign in to comment.