From d5024d1b70af13fdd712d1fbc537418a3b07146c Mon Sep 17 00:00:00 2001 From: Yuki Sugaya Date: Mon, 17 Oct 2022 17:46:37 +0900 Subject: [PATCH] Fixed dropdown width according to items (#4995) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed dropdown width according to items * Add the “Add” before the calendar type item * Fix dropdown cut off on mobile Co-authored-by: Peer Richelsen Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> --- .../v2/apps/AdditionalCalendarSelector.tsx | 38 +++++++++++++++++-- .../v2/apps/CalendarListContainer.tsx | 2 +- apps/web/public/static/locales/en/common.json | 3 +- 3 files changed, 38 insertions(+), 5 deletions(-) diff --git a/apps/web/components/v2/apps/AdditionalCalendarSelector.tsx b/apps/web/components/v2/apps/AdditionalCalendarSelector.tsx index 2d16bc1084..c230a32c4b 100644 --- a/apps/web/components/v2/apps/AdditionalCalendarSelector.tsx +++ b/apps/web/components/v2/apps/AdditionalCalendarSelector.tsx @@ -27,7 +27,7 @@ const ImageOption = (optionProps: OptionProps<{ [key: string]: string; type: App {data.image && ( {data.label} )} -

{data.label}

+

{`${t("add")} ${data.label}`}

); }} @@ -35,7 +35,7 @@ const ImageOption = (optionProps: OptionProps<{ [key: string]: string; type: App ) : ( ); }; @@ -63,11 +63,43 @@ const AdditionalCalendarSelector = ({ isLoading }: AdditionalCalendarSelectorPro return (