Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: remove max height restriction on issue comments (#18116)

boojackc69079968ae6
diff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentList.vue b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentList.vue
index e648e2b87a..7a862466a4 100644
--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentList.vue
+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentList.vue
@@ -40,6 +40,7 @@
:content="item.comment.comment"
:project="project"
:maxlength="65536"
+ :max-height="Number.MAX_SAFE_INTEGER"
@change="(val: string) => (state.editComment = val)"
@submit="doUpdateComment"
/>
diff --git a/frontend/src/components/MarkdownEditor/MarkdownEditor.vue b/frontend/src/components/MarkdownEditor/MarkdownEditor.vue
index cff8ac71a4..c1b9f5ef12 100644
--- a/frontend/src/components/MarkdownEditor/MarkdownEditor.vue
+++ b/frontend/src/components/MarkdownEditor/MarkdownEditor.vue
@@ -128,14 +128,20 @@ interface Toolbar {
type EditorMode = "editor" | "preview";
-const props = defineProps<{
- content: string;
- mode: EditorMode;
- project: Project;
- placeholder?: string;
- autofocus?: boolean;
- maxlength?: number;
-}>();
+const props = withDefaults(
+ defineProps<{
+ content: string;
+ mode: EditorMode;
+ project: Project;
+ placeholder?: string;
+ autofocus?: boolean;
+ maxlength?: number;
+ maxHeight?: number;
+ }>(),
+ {
+ maxHeight: 192,
+ }
+);
const emit = defineEmits<{
(event: "change", value: string): void;
@@ -189,6 +195,7 @@ const { renderedContent } = useRenderMarkdown(
toRef(props, "project"),
{
placeholder: `<span>${t("issue.comment-editor.nothing-to-preview")}</span>`,
+ maxHeight: props.maxHeight,
}
);