From 5bf27a463c4ca9c0683a597551ceb67d51be74a5 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Sat, 13 May 2023 22:50:14 +0200 Subject: [PATCH] fix: language list containing duplicate `en` lang (#6583) --- src/css/styles.scss | 4 + .../components/LanguageList.tsx | 5 +- src/i18n.ts | 109 +++++++++--------- 3 files changed, 60 insertions(+), 58 deletions(-) diff --git a/src/css/styles.scss b/src/css/styles.scss index d9d8544a..3fc2ff56 100644 --- a/src/css/styles.scss +++ b/src/css/styles.scss @@ -538,6 +538,10 @@ height: 3px; } + select::-webkit-scrollbar { + width: 10px; + } + ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; diff --git a/src/excalidraw-app/components/LanguageList.tsx b/src/excalidraw-app/components/LanguageList.tsx index aaa5f213..c80acc9b 100644 --- a/src/excalidraw-app/components/LanguageList.tsx +++ b/src/excalidraw-app/components/LanguageList.tsx @@ -1,7 +1,7 @@ import { useSetAtom } from "jotai"; import React from "react"; import { appLangCodeAtom } from ".."; -import { defaultLang, useI18n } from "../../i18n"; +import { useI18n } from "../../i18n"; import { languages } from "../../i18n"; export const LanguageList = ({ style }: { style?: React.CSSProperties }) => { @@ -16,9 +16,6 @@ export const LanguageList = ({ style }: { style?: React.CSSProperties }) => { aria-label={t("buttons.selectLanguage")} style={style} > - {languages.map((lang) => (