From 0d5c7c66531f59116fcc59115f7a3b953abbdc3c Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 12 May 2025 19:47:44 +0530 Subject: [PATCH] [WEB-4051] regression: update font size of comment editor #7048 --- .../issues/peek-overview/comment/comment-detail-card.tsx | 3 +++ web/core/components/comments/comment-card.tsx | 6 ++++++ web/core/components/comments/comment-create.tsx | 3 +++ .../sidebar/notification-card/content.tsx | 3 +++ 4 files changed, 15 insertions(+) diff --git a/space/core/components/issues/peek-overview/comment/comment-detail-card.tsx b/space/core/components/issues/peek-overview/comment/comment-detail-card.tsx index 70fcedd0a..56a71be5a 100644 --- a/space/core/components/issues/peek-overview/comment/comment-detail-card.tsx +++ b/space/core/components/issues/peek-overview/comment/comment-detail-card.tsx @@ -144,6 +144,9 @@ export const CommentCard: React.FC = observer((props) => { ref={showEditorRef} id={comment.id} initialValue={comment.comment_html} + displayConfig={{ + fontSize: "small-font", + }} /> diff --git a/web/core/components/comments/comment-card.tsx b/web/core/components/comments/comment-card.tsx index 698e1ddf3..1831af4a0 100644 --- a/web/core/components/comments/comment-card.tsx +++ b/web/core/components/comments/comment-card.tsx @@ -162,6 +162,9 @@ export const CommentCard: FC = observer((props) => { }} projectId={projectId?.toString() ?? ""} parentClassName="p-2" + displayConfig={{ + fontSize: "small-font", + }} />
@@ -209,6 +212,9 @@ export const CommentCard: FC = observer((props) => { workspaceSlug={workspaceSlug} containerClassName="!py-1" projectId={(projectId as string) ?? ""} + displayConfig={{ + fontSize: "small-font", + }} />
diff --git a/web/core/components/comments/comment-create.tsx b/web/core/components/comments/comment-create.tsx index dc74a9a12..aae88c6c1 100644 --- a/web/core/components/comments/comment-create.tsx +++ b/web/core/components/comments/comment-create.tsx @@ -137,6 +137,9 @@ export const CommentCreate: FC = observer((props) => { }} showToolbarInitially={showToolbarInitially} parentClassName="p-2" + displayConfig={{ + fontSize: "small-font", + }} /> )} /> diff --git a/web/core/components/workspace-notifications/sidebar/notification-card/content.tsx b/web/core/components/workspace-notifications/sidebar/notification-card/content.tsx index feb8c373c..7d58b3a8f 100644 --- a/web/core/components/workspace-notifications/sidebar/notification-card/content.tsx +++ b/web/core/components/workspace-notifications/sidebar/notification-card/content.tsx @@ -102,6 +102,9 @@ export const NotificationContent: FC<{ workspaceId={workspaceId} workspaceSlug={workspaceSlug} projectId={projectId} + displayConfig={{ + fontSize: "small-font", + }} /> )}