Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

UI tweaks

Matt Roberts2d68d6943c5e
diff --git a/locale/de/client.json b/locale/de/client.json
index 511479ccc..a9d0d56dd 100644
--- a/locale/de/client.json
+++ b/locale/de/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Erledigt",
"enum.poststatus.declined": "Abgelehnt",
"enum.poststatus.deleted": "Gelöscht",
diff --git a/locale/el/client.json b/locale/el/client.json
index 8d7ad5f43..745534a07 100644
--- a/locale/el/client.json
+++ b/locale/el/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Ολοκληρωμένο",
"enum.poststatus.declined": "Απορρίφθηκε",
"enum.poststatus.deleted": "Διαγραμμένο",
diff --git a/locale/en/client.json b/locale/en/client.json
index 6af6af752..1dd24da89 100644
--- a/locale/en/client.json
+++ b/locale/en/client.json
@@ -15,7 +15,8 @@
"action.vote": "Vote for this idea",
"action.voted": "Voted!",
"d41FkJ": "{count, plural, one {# tag} other {# tags}}",
- "editor.markdownmode": "Markdown editor",
+ "editor.markdownmode": "Switch to markdown editor",
+ "editor.richtextmode": "Switch to rich text editor",
"enum.poststatus.completed": "Completed",
"enum.poststatus.declined": "Declined",
"enum.poststatus.deleted": "Deleted",
diff --git a/locale/es-ES/client.json b/locale/es-ES/client.json
index 8bfba5365..ae6dc3478 100644
--- a/locale/es-ES/client.json
+++ b/locale/es-ES/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Completado",
"enum.poststatus.declined": "Rechazado",
"enum.poststatus.deleted": "Eliminado",
diff --git a/locale/fr/client.json b/locale/fr/client.json
index f5bdf871c..552356806 100644
--- a/locale/fr/client.json
+++ b/locale/fr/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Terminé",
"enum.poststatus.declined": "Refusé",
"enum.poststatus.deleted": "Supprimé",
diff --git a/locale/it/client.json b/locale/it/client.json
index cd9c24fd9..42d6f1a3a 100644
--- a/locale/it/client.json
+++ b/locale/it/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Completato",
"enum.poststatus.declined": "Rifiutato",
"enum.poststatus.deleted": "Eliminato",
diff --git a/locale/nl/client.json b/locale/nl/client.json
index b84526865..314cfc4c2 100644
--- a/locale/nl/client.json
+++ b/locale/nl/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Voltooid",
"enum.poststatus.declined": "Afgewezen",
"enum.poststatus.deleted": "Verwijderd",
diff --git a/locale/pl/client.json b/locale/pl/client.json
index a19a36be4..41404b196 100644
--- a/locale/pl/client.json
+++ b/locale/pl/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Ukończone",
"enum.poststatus.declined": "Odrzucone",
"enum.poststatus.deleted": "Usunięte",
diff --git a/locale/pt-BR/client.json b/locale/pt-BR/client.json
index 16020b311..ce9a05294 100644
--- a/locale/pt-BR/client.json
+++ b/locale/pt-BR/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Completado",
"enum.poststatus.declined": "Rejeitado",
"enum.poststatus.deleted": "Removido",
diff --git a/locale/ru/client.json b/locale/ru/client.json
index c324b8025..b47afcd22 100644
--- a/locale/ru/client.json
+++ b/locale/ru/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Выполнено",
"enum.poststatus.declined": "Отклонено",
"enum.poststatus.deleted": "Удалено",
diff --git a/locale/sk/client.json b/locale/sk/client.json
index 476bf810d..9222f91e0 100644
--- a/locale/sk/client.json
+++ b/locale/sk/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Dokončené",
"enum.poststatus.declined": "Odmietnuté",
"enum.poststatus.deleted": "Vymazané",
diff --git a/locale/sv-SE/client.json b/locale/sv-SE/client.json
index 472e93d9d..3075a5069 100644
--- a/locale/sv-SE/client.json
+++ b/locale/sv-SE/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Avslutad",
"enum.poststatus.declined": "Nekad",
"enum.poststatus.deleted": "Borttagen",
diff --git a/locale/tr/client.json b/locale/tr/client.json
index 0f71e3ffa..d90b7f768 100644
--- a/locale/tr/client.json
+++ b/locale/tr/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "Tamamlandı",
"enum.poststatus.declined": "Reddedildi",
"enum.poststatus.deleted": "Silindi",
diff --git a/locale/zh-CN/client.json b/locale/zh-CN/client.json
index cac0ad14f..66062dac8 100644
--- a/locale/zh-CN/client.json
+++ b/locale/zh-CN/client.json
@@ -16,6 +16,7 @@
"action.voted": "",
"d41FkJ": "",
"editor.markdownmode": "",
+ "editor.richtextmode": "",
"enum.poststatus.completed": "完成",
"enum.poststatus.declined": "拒绝",
"enum.poststatus.deleted": "删除",
diff --git a/public/components/common/Button.scss b/public/components/common/Button.scss
index b11214249..af6261894 100644
--- a/public/components/common/Button.scss
+++ b/public/components/common/Button.scss
@@ -32,7 +32,7 @@
&--secondary {
color: get("colors.gray.900");
- background-color: get("colors.gray.50");
+ background-color: get("colors.gray.100");
border: 1px solid get("colors.gray.300");
&:hover {
@@ -143,5 +143,3 @@
transform: rotate(360deg);
}
}
-
-
diff --git a/public/components/common/Button.tsx b/public/components/common/Button.tsx
index 411c17e24..dc2ad0263 100644
--- a/public/components/common/Button.tsx
+++ b/public/components/common/Button.tsx
@@ -44,7 +44,6 @@ export const Button: React.FC<ButtonProps> = ({ size = "default", variant = "sec
"c-button--loading": clicked,
"c-button--disabled": clicked || props.disabled,
[props.className || ""]: props.className,
- "shadow-sm": variant == "primary" || variant == "secondary",
})
let buttonContent: JSX.Element
diff --git a/public/components/common/form/CommentEditor.scss b/public/components/common/form/CommentEditor.scss
index 15c0e6858..01ec73ba0 100644
--- a/public/components/common/form/CommentEditor.scss
+++ b/public/components/common/form/CommentEditor.scss
@@ -30,8 +30,8 @@
flex-wrap: wrap;
gap: 4px;
}
-
-.c-editor-button {
+.c-editor-button,
+.c-markdown-toggle {
display: flex;
align-items: center;
justify-content: center;
@@ -53,21 +53,28 @@
color: get("colors.gray.500");
}
+ svg {
+ width: spacing(4.5);
+ height: spacing(4.5);
+ }
+}
+
+.c-editor-button {
&.is-active {
background-color: get("colors.gray.300");
color: get("colors.gray.900");
}
+}
- svg {
- width: spacing(4.5);
- height: spacing(4.5);
- }
+.c-markdown-toggle {
+ height: 28px;
}
.fider-tiptap-editor {
border: 1px solid #e5e7eb;
border-radius: 6px;
overflow: hidden;
+ background-color: get("colors.white");
.tiptap {
:first-child {
diff --git a/public/components/common/form/CommentEditor.tsx b/public/components/common/form/CommentEditor.tsx
index 5e867a559..353f1ee62 100644
--- a/public/components/common/form/CommentEditor.tsx
+++ b/public/components/common/form/CommentEditor.tsx
@@ -147,12 +147,16 @@ const MenuBar = ({
type="button"
title={isMarkdownMode ? "Rich Text Mode" : "Markdown Mode"}
onClick={toggleMarkdownMode}
- className={`c-editor-button ${isMarkdownMode ? "is-active" : ""} ${disabled ? "is-disabled" : ""} ml-auto text-xs`}
+ className={`no-focus c-markdown-toggle ${isMarkdownMode ? "is-active" : ""} ${disabled ? "is-disabled" : ""} ml-auto text-xs`}
>
<span className="c-editor-button-text">
- <Trans id="editor.markdownmode">Markdown editor</Trans>
+ {isMarkdownMode ? (
+ <Trans id="editor.richtextmode">Switch to rich text editor</Trans>
+ ) : (
+ <Trans id="editor.markdownmode">Switch to markdown editor</Trans>
+ )}
</span>
- </button>{" "}
+ </button>
</div>
</div>
)