Skip to content

Commit

Permalink
Fix comment styles by adding prose-sm (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiallJoeMaher authored Dec 16, 2023
1 parent ba8559f commit c7b1b31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/Comments/CommentsArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const CommentsArea = ({ postId, postOwnerId }: Props) => {
</div>

<div className="-mt-2 ml-4 border-l-2 border-neutral-400 pl-2 dark:border-neutral-700">
<div className="prose overflow-x-hidden text-sm dark:prose-invert">
<div className="prose-sm overflow-x-hidden text-sm dark:prose-invert">
{Markdoc.renderers.react(content, React, {
components: markdocComponents,
})}
Expand Down Expand Up @@ -413,7 +413,7 @@ const CommentsArea = ({ postId, postOwnerId }: Props) => {
)}
{viewPreviewId === id ? (
<article
className="prose prose-invert overflow-x-hidden text-sm"
className="prose-sm prose-invert overflow-x-hidden text-sm"
style={{ whiteSpace: "pre-wrap" }}
>
{Markdoc.renderers.react(
Expand All @@ -439,11 +439,11 @@ const CommentsArea = ({ postId, postOwnerId }: Props) => {
/>
</>
)}
<div className="flex items-center">
<div className="flex">
<button
disabled={createCommentStatus === "loading"}
type="submit"
className=" primary-button border-2 text-sm text-neutral-300 hover:text-white"
className="primary-button border-2 text-sm text-neutral-300 hover:text-white"
>
{editMode ? "Update" : "Submit"}
</button>
Expand Down
2 changes: 1 addition & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ body {
}

.primary-button {
@apply ml-4 inline-flex justify-center rounded-md bg-gradient-to-r from-orange-400 to-pink-600 px-4 py-2 font-medium text-white shadow-sm hover:from-orange-300 hover:to-pink-500 focus:outline-none focus:ring-2 focus:ring-pink-600 focus:ring-offset-2 focus-visible:ring-2 focus-visible:ring-pink-600 focus-visible:ring-offset-white disabled:border-neutral-300 disabled:from-neutral-500 disabled:to-neutral-700 disabled:text-neutral-300 disabled:hover:text-neutral-300;
@apply inline-flex justify-center rounded-md bg-gradient-to-r from-orange-400 to-pink-600 px-4 py-2 font-medium text-white shadow-sm hover:from-orange-300 hover:to-pink-500 focus:outline-none focus:ring-2 focus:ring-pink-600 focus:ring-offset-2 focus-visible:ring-2 focus-visible:ring-pink-600 focus-visible:ring-offset-white disabled:border-neutral-300 disabled:from-neutral-500 disabled:to-neutral-700 disabled:text-neutral-300 disabled:hover:text-neutral-300;
}

.secondary-button {
Expand Down

0 comments on commit c7b1b31

Please sign in to comment.