Skip to content

Commit

Permalink
Update typography and Tiptap classes, fix styling and break word issue
Browse files Browse the repository at this point in the history
  • Loading branch information
agjs committed Apr 18, 2024
1 parent c707932 commit d8efde0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@programmer_network/yail",
"version": "1.0.156",
"version": "1.0.157",
"description": "Programmer Network's official UI library for React",
"author": "Aleksandar Grbic - (https://programmer.network)",
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`AuthorCard component > renders correctly 1`] = `
John Doe
</h2>
<p
class="my-4 text-primary-text-color !my-0"
class="my-4 text-primary-text-color break-words overflow-hidden !my-0"
>
An expert in the field.
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/CTA/__snapshots__/CTA.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exports[`CTA component > renders correctly - snapshot test 1`] = `
Test Title
</h2>
<p
class="my-4 text-primary-text-color mx-auto max-w-md text-primary-text-color text-center !my-0"
class="my-4 text-primary-text-color break-words overflow-hidden mx-auto max-w-md text-primary-text-color text-center !my-0"
>
Test Subtitle
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Card: FC<ICard> = ({ data, className, NavLink }) => {
<H3 margin='none'>{title}</H3>
</NavLink>
)}
<Paragraph>{description}</Paragraph>
<Paragraph margin='none'>{description}</Paragraph>
{tags && tags.length > 0 && (
<div className='mt-2 flex items-center gap-2'>
{tags.map((tag, index) => (
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Inputs/Tiptap/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const toolbarItemToClassName = {
},
[TIPTAP_TOOLBAR_ITEMS.PARAGRAPH]: {
tagName: "p",
classes: "my-4 text-primary-text-color"
classes: "my-4 text-primary-text-color break-words overflow-hidden"
},
[TIPTAP_TOOLBAR_ITEMS.LINK]: {
tagName: "a",
Expand Down

0 comments on commit d8efde0

Please sign in to comment.