mirror of
https://github.com/makeplane/plane.git
synced 2026-02-24 20:20:49 +01:00
fix: comment font size
This commit is contained in:
@@ -139,7 +139,15 @@ export const CommentCard: FC<TCommentCard> = observer((props) => {
|
||||
<form className={`flex-col gap-2 ${isEditing ? "flex" : "hidden"}`}>
|
||||
<div
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter" && !e.shiftKey && !e.ctrlKey && !e.metaKey && !isEmpty) handleSubmit(onEnter)(e);
|
||||
if (
|
||||
e.key === "Enter" &&
|
||||
!e.shiftKey &&
|
||||
!e.ctrlKey &&
|
||||
!e.metaKey &&
|
||||
!isEmpty &&
|
||||
editorRef.current?.isEditorReadyToDiscard()
|
||||
)
|
||||
handleSubmit(onEnter)(e);
|
||||
}}
|
||||
>
|
||||
<LiteTextEditor
|
||||
@@ -161,9 +169,9 @@ export const CommentCard: FC<TCommentCard> = observer((props) => {
|
||||
return asset_id;
|
||||
}}
|
||||
projectId={projectId?.toString() ?? ""}
|
||||
editorClassName="[&>*]:!py-0 [&>*]:!text-sm"
|
||||
editorClassName="[&>*]:!py-0 [&_*]:!text-sm"
|
||||
parentClassName="p-2"
|
||||
/>
|
||||
/>
|
||||
</div>
|
||||
<div className="flex gap-1 self-end">
|
||||
{!isEmpty && (
|
||||
@@ -208,7 +216,7 @@ export const CommentCard: FC<TCommentCard> = observer((props) => {
|
||||
initialValue={comment.comment_html ?? ""}
|
||||
workspaceId={workspaceId}
|
||||
workspaceSlug={workspaceSlug}
|
||||
editorClassName="[&>*]:!py-0 [&>*]:!text-sm"
|
||||
editorClassName="[&>*]:!py-0 [&_*]:!text-sm"
|
||||
containerClassName="!py-1"
|
||||
projectId={(projectId as string) ?? ""}
|
||||
/>
|
||||
|
||||
@@ -125,7 +125,7 @@ export const CommentCreate: FC<TCommentCreate> = observer((props) => {
|
||||
}}
|
||||
ref={editorRef}
|
||||
initialValue={value ?? "<p></p>"}
|
||||
containerClassName="min-h-min [&_p]:!p-0 [&_p]:!text-sm"
|
||||
containerClassName="min-h-min [&_p]:!p-0 [&_*]:!text-sm"
|
||||
onChange={(comment_json, comment_html) => onChange(comment_html)}
|
||||
accessSpecifier={accessValue ?? EIssueCommentAccessSpecifier.INTERNAL}
|
||||
handleAccessChange={onAccessChange}
|
||||
|
||||
Reference in New Issue
Block a user