Skip to content

Commit

Permalink
fix(ui): make markdown input text size equal to other inputs (#423)
Browse files Browse the repository at this point in the history
* fix(ui): make markdown input text size equal to other inputs

* docs(ui): add changest
  • Loading branch information
guerrap authored Oct 11, 2023
1 parent 3b2a84f commit c9be165
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-goats-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@carrot-kpi/ui": patch
---

Make markdown input text size equal to other inputs
6 changes: 3 additions & 3 deletions packages/ui/src/components/markdown-input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const markdownInputContentStyles = mergedCva(
"cui-overflow-y-auto",
"cui-overflow-x-hidden",
"cui-p-3",
"cui-text-sm",
"cui-text-lg",
"cui-font-normal",
"cui-cursor-text",
"focus:cui-outline-none",
Expand Down Expand Up @@ -84,12 +84,12 @@ export const MarkdownInput = ({
Placeholder.configure({
placeholder,
emptyEditorClass:
"before:cui-content-[attr(data-placeholder)] before:cui-absolute before:cui-opacity-30 dark:before:cui-opacity-20 cui-text-sm cui-font-normal",
"before:cui-content-[attr(data-placeholder)] before:cui-absolute before:cui-opacity-30 dark:before:cui-opacity-20 cui-text-base cui-font-normal",
}),
],
editorProps: {
attributes: {
class: "cui-prose cui-prose-sm focus:cui-outline-none cui-font-mono cui-h-full dark:cui-prose-invert prose-pre:dark:cui-bg-gray-700",
class: "cui-prose cui-prose-base focus:cui-outline-none cui-font-mono cui-h-full dark:cui-prose-invert prose-pre:dark:cui-bg-gray-700",
},
},
onUpdate: ({ editor }) => {
Expand Down

0 comments on commit c9be165

Please sign in to comment.