From ebba5bdd80d8c18e72d66d58dd895e103e25a28a Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Fri, 16 Jun 2023 17:47:42 -0400 Subject: [PATCH 1/4] feat: Move text formatting bar above textarea --- src/assets/css/main.css | 12 +-- .../components/common/language-select.tsx | 9 +- .../components/common/markdown-textarea.tsx | 87 +++++++++---------- 3 files changed, 49 insertions(+), 59 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 82f8433e..e316ab92 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -46,7 +46,7 @@ } .md-div p:last-child { - margin-bottom: 0px; + margin-bottom: 0; } .md-div img { @@ -371,7 +371,7 @@ br.big { } .tribute-container li { - padding: 5px 5px; + padding: 5px; cursor: pointer; } @@ -410,13 +410,7 @@ br.big { -webkit-line-clamp: 3; -webkit-box-orient: vertical; } -.lang-select-action { - width: 100px; -} -.lang-select-action:focus { - width: auto; -} -em-emoji-picker { +.emoji-picker { width: 100%; } diff --git a/src/shared/components/common/language-select.tsx b/src/shared/components/common/language-select.tsx index fac3216f..09e9c968 100644 --- a/src/shared/components/common/language-select.tsx +++ b/src/shared/components/common/language-select.tsx @@ -100,12 +100,9 @@ export class LanguageSelect extends Component { return (