From 352a1271168dbbf9783799339da12874d5ecc963 Mon Sep 17 00:00:00 2001 From: data-miner00 Date: Sat, 23 Mar 2024 19:20:29 +0800 Subject: [PATCH 1/3] fix: Use image flag instead of emoji --- components/LanguageSwitcher.vue | 24 ++++++++++++++++++++---- public/images/flag-france.svg | 1 + public/images/flag-united-states.svg | 1 + 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 public/images/flag-france.svg create mode 100644 public/images/flag-united-states.svg diff --git a/components/LanguageSwitcher.vue b/components/LanguageSwitcher.vue index b901183..27ebbd2 100644 --- a/components/LanguageSwitcher.vue +++ b/components/LanguageSwitcher.vue @@ -44,25 +44,41 @@ function closePopup() {
🇫🇷 Français + + + + Français + 🇺🇸 English + + + + English +
diff --git a/public/images/flag-france.svg b/public/images/flag-france.svg new file mode 100644 index 0000000..2859bcf --- /dev/null +++ b/public/images/flag-france.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/flag-united-states.svg b/public/images/flag-united-states.svg new file mode 100644 index 0000000..880e3e8 --- /dev/null +++ b/public/images/flag-united-states.svg @@ -0,0 +1 @@ + \ No newline at end of file From ea9fb56f8ec027febe6b6c19b92e66d8d09b22b5 Mon Sep 17 00:00:00 2001 From: data-miner00 Date: Sat, 23 Mar 2024 19:55:29 +0800 Subject: [PATCH 2/3] feat: Table of content on mobile --- components/TableOfContent.vue | 2 +- pages/[...slug].vue | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/TableOfContent.vue b/components/TableOfContent.vue index 5dd9813..65387cf 100644 --- a/components/TableOfContent.vue +++ b/components/TableOfContent.vue @@ -26,7 +26,7 @@ var scrollToTop = function () {