Skip to content

Commit

Permalink
add line height and justify text
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Oct 25, 2024
1 parent 732d0ce commit a98351d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(main)/_components/completion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ const TextCompletionInput: React.FC<TextCompletionInputProps> = ({
return (
<div className="relative inline-block w-full">
<textarea
className={`${customClass}`}
className={`${customClass} editor`}
value={inputValue}
onChange={handleChange}
onKeyDown={handleKeyDown}
Expand Down
13 changes: 13 additions & 0 deletions src/app/markdown.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.editor {
line-height: 1.0;
}

.reactMarkDown {
/* word-break: break-all;
white-space: pre-wrap; */
Expand Down Expand Up @@ -167,6 +171,15 @@
*/
/* add standard styles for horizontal rules */

.reactMarkDown a {
line-height: 100%;
}

.reactMarkDown p {
line-height: 120%;
text-align: justify;
}

.reactMarkDown hr {
font-size: 1rem;
font-weight: 400;
Expand Down

0 comments on commit a98351d

Please sign in to comment.