From 781de79b97a1353275801c97a7be361f45132005 Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Mon, 18 Jul 2022 14:02:27 -0700 Subject: [PATCH] Make description text style more consistent - links and blockquotes have light font weight, like other text - font size in editor matches font size in description - old descriptions have same style as new - placeholder text matches editor style - decrease line-height a bit --- web/components/editor.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/components/editor.tsx b/web/components/editor.tsx index fabce934..7063fa42 100644 --- a/web/components/editor.tsx +++ b/web/components/editor.tsx @@ -21,7 +21,8 @@ import { FileUploadButton } from './file-upload-button' import { linkClass } from './site-link' const proseClass = clsx( - 'prose prose-p:my-2 prose-li:my-0 prose-blockquote:not-italic max-w-none prose-quoteless font-light' + 'prose prose-p:my-0 prose-li:my-0 prose-blockquote:not-italic max-w-none prose-quoteless leading-relaxed', + 'font-light prose-a:font-light prose-blockquote:font-light' ) export function useTextEditor(props: { @@ -34,7 +35,7 @@ export function useTextEditor(props: { const editorClass = clsx( proseClass, - 'box-content min-h-[6em] textarea textarea-bordered' + 'box-content min-h-[6em] textarea textarea-bordered text-base' ) const editor = useEditor({ @@ -98,7 +99,7 @@ export function TextEditor(props: { {editor && ( Type *markdown*. Paste or{' '} +
) : (