From: Jay Sitter Date: Fri, 16 Jun 2023 23:49:28 +0000 (-0400) Subject: feat: Redesign the format bar / textarea into a single bordered area with divider X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7Brss%7D?a=commitdiff_plain;h=f9f4caf2601879930720ee753fadf78a42726368;p=lemmy-ui.git feat: Redesign the format bar / textarea into a single bordered area with divider --- diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index 7405638..5d93220 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -1,4 +1,5 @@ import autosize from "autosize"; +import classNames from "classnames"; import { NoOptionI18nKeys } from "i18next"; import { Component, linkEvent } from "inferno"; import { Language } from "lemmy-js-client"; @@ -143,100 +144,123 @@ export class MarkdownTextArea extends Component< } />
-
- {this.getFormatButton("bold", this.handleInsertBold)} - {this.getFormatButton("italic", this.handleInsertItalic)} - {this.getFormatButton("link", this.handleInsertLink)} - this.handleEmoji(this, e)} - disabled={this.isDisabled} - > -
- - -
- {this.getFormatButton("header", this.handleInsertHeader)} - {this.getFormatButton( - "strikethrough", - this.handleInsertStrikethrough - )} - {this.getFormatButton("quote", this.handleInsertQuote)} - {this.getFormatButton("list", this.handleInsertList)} - {this.getFormatButton("code", this.handleInsertCode)} - {this.getFormatButton("subscript", this.handleInsertSubscript)} - {this.getFormatButton("superscript", this.handleInsertSuperscript)} - {this.getFormatButton("spoiler", this.handleInsertSpoiler)} - +
- - -
- -
-