Skip to content

Commit

Permalink
feat(frontend): use fixed min, not customisable max height for markdo…
Browse files Browse the repository at this point in the history
…wn editor
  • Loading branch information
paulrobertlloyd committed Apr 13, 2024
1 parent c2a76ab commit 3af3cfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/frontend/components/textarea/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const TextareaFieldComponent = class extends HTMLElement {
}

this.editorId = this.getAttribute("editor-id");
this.editorHeight = this.getAttribute("editor-height");
this.editorImageUpload = this.getAttribute("editor-image-upload");
this.editorLocale = this.getAttribute("editor-locale");
this.editorStatus = this.getAttribute("editor-status");
Expand Down Expand Up @@ -93,7 +92,7 @@ export const TextareaFieldComponent = class extends HTMLElement {
},
element: this.$textarea,
imageUploadFunction: this.uploadFile,
maxHeight: this.editorHeight,
minHeight: "6rem",
previewClass: ["editor-preview", "s-flow"],
status,
// @ts-ignore
Expand Down

0 comments on commit 3af3cfa

Please sign in to comment.