]> Untitled Git - lemmy-ui.git/commitdiff
fix: Remove inline styles and use Bootstrap classes
authorJay Sitter <jay@jaysitter.com>
Sat, 17 Jun 2023 02:43:46 +0000 (22:43 -0400)
committerJay Sitter <jay@jaysitter.com>
Sat, 17 Jun 2023 02:43:46 +0000 (22:43 -0400)
src/shared/components/common/markdown-textarea.tsx

index ef7ba0187df3d4a7e9c0916eb0c5fd5df22672c6..1a06d3db7666daa72ad5f281fc0c7b22657ec6eb 100644 (file)
@@ -146,18 +146,8 @@ export class MarkdownTextArea extends Component<
         />
         <div className="form-group row">
           <div className="col-12">
-            <div
-              className="rounded bg-light overflow-hidden"
-              style={{
-                border: "1px solid var(--medium-light)",
-              }}
-            >
-              <div
-                className="d-flex flex-wrap"
-                style={{
-                  "border-bottom": "1px solid var(--medium-light)",
-                }}
-              >
+            <div className="rounded bg-light border border-light">
+              <div className="d-flex flex-wrap border-bottom border-light">
                 {this.getFormatButton("bold", this.handleInsertBold)}
                 {this.getFormatButton("italic", this.handleInsertItalic)}
                 {this.getFormatButton("link", this.handleInsertLink)}
@@ -219,9 +209,12 @@ export class MarkdownTextArea extends Component<
               <div>
                 <textarea
                   id={this.id}
-                  className={classNames("form-control border-0 rounded-0", {
-                    "d-none": this.state.previewMode,
-                  })}
+                  className={classNames(
+                    "form-control border-0 rounded-bottom",
+                    {
+                      "d-none": this.state.previewMode,
+                    }
+                  )}
                   value={this.state.content}
                   onInput={linkEvent(this, this.handleContentChange)}
                   onPaste={linkEvent(this, this.handleImageUploadPaste)}