Skip to content

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

chore: update minHeight of markdown renderer (#11627)

boojackd7ee6bf90e31
diff --git a/frontend/src/assets/css/github-markdown-style.css b/frontend/src/assets/css/github-markdown-style.css
index 51c1fa9754..378c072e21 100644
--- a/frontend/src/assets/css/github-markdown-style.css
+++ b/frontend/src/assets/css/github-markdown-style.css
@@ -518,7 +518,7 @@
margin-top: 0 !important;
}
-.markdown-body > *:last-child {
+.markdown-body > p:last-of-type {
margin-bottom: 0 !important;
}
diff --git a/frontend/src/components/MarkdownEditor/useRenderMarkdown.ts b/frontend/src/components/MarkdownEditor/useRenderMarkdown.ts
index 3dd14b02fc..c2463960d8 100644
--- a/frontend/src/components/MarkdownEditor/useRenderMarkdown.ts
+++ b/frontend/src/components/MarkdownEditor/useRenderMarkdown.ts
@@ -14,7 +14,7 @@ export type UseRenderMarkdownOptions = {
};
const defaultOptions = (): UseRenderMarkdownOptions => ({
- minHeight: 48 /* 3rem */,
+ minHeight: 24 /* 1 line */,
maxHeight: 192 /* 12rem */,
placeholder: "",
});