]> Untitled Git - lemmy.git/commitdiff
Changing location of sub and superscript buttons.
authorDessalines <tyhou13@gmx.com>
Tue, 21 Jul 2020 03:58:58 +0000 (23:58 -0400)
committerDessalines <tyhou13@gmx.com>
Tue, 21 Jul 2020 03:58:58 +0000 (23:58 -0400)
ui/src/components/markdown-textarea.tsx

index 3ad8fd5bec17c3fbbc1a31a0000c2d68210c5de3..10b3fdd725f6d42f33399b33d425e04ec55248a1 100644 (file)
@@ -187,24 +187,6 @@ export class MarkdownTextArea extends Component<
                 <use xlinkHref="#icon-italic"></use>
               </svg>
             </button>
-            <button
-              class="btn btn-sm text-muted"
-              data-tippy-content={i18n.t('subscript')}
-              onClick={linkEvent(this, this.handleInsertSubscript)}
-            >
-              <svg class="icon icon-inline">
-                <use xlinkHref="#icon-subscript"></use>
-              </svg>
-            </button>
-            <button
-              class="btn btn-sm text-muted"
-              data-tippy-content={i18n.t('superscript')}
-              onClick={linkEvent(this, this.handleInsertSuperscript)}
-            >
-              <svg class="icon icon-inline">
-                <use xlinkHref="#icon-superscript"></use>
-              </svg>
-            </button>
             <button
               class="btn btn-sm text-muted"
               data-tippy-content={i18n.t('link')}
@@ -285,6 +267,24 @@ export class MarkdownTextArea extends Component<
                 <use xlinkHref="#icon-code"></use>
               </svg>
             </button>
+            <button
+              class="btn btn-sm text-muted"
+              data-tippy-content={i18n.t('subscript')}
+              onClick={linkEvent(this, this.handleInsertSubscript)}
+            >
+              <svg class="icon icon-inline">
+                <use xlinkHref="#icon-subscript"></use>
+              </svg>
+            </button>
+            <button
+              class="btn btn-sm text-muted"
+              data-tippy-content={i18n.t('superscript')}
+              onClick={linkEvent(this, this.handleInsertSuperscript)}
+            >
+              <svg class="icon icon-inline">
+                <use xlinkHref="#icon-superscript"></use>
+              </svg>
+            </button>
             <button
               class="btn btn-sm text-muted"
               data-tippy-content={i18n.t('spoiler')}