From 851fb25430fbe64ffc6057fcfb99da265de9c9fe Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Tue, 6 Sep 2022 21:01:05 +0200 Subject: [PATCH] fixed height of recurring event select (#4213) --- .../v2/eventtype/RecurringEventController.tsx | 10 +++++----- apps/web/public/static/locales/en/common.json | 5 ++++- packages/ui/v2/core/form/Select.tsx | 3 +-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/web/components/v2/eventtype/RecurringEventController.tsx b/apps/web/components/v2/eventtype/RecurringEventController.tsx index 2d66fefd06..65cbc656e6 100644 --- a/apps/web/components/v2/eventtype/RecurringEventController.tsx +++ b/apps/web/components/v2/eventtype/RecurringEventController.tsx @@ -72,7 +72,7 @@ export default function RecurringEventController({ type="number" min="1" max="20" - className="block w-16 rounded-md border-gray-300 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2" + className="block h-[36px] w-16 rounded-md border-gray-300 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2" defaultValue={recurringEventState.interval} onChange={(event) => { const newVal = { @@ -87,7 +87,7 @@ export default function RecurringEventController({ options={recurringEventFreqOptions} value={recurringEventFreqOptions[recurringEventState.freq]} isSearchable={false} - className="w-18 block min-w-0 rounded-md text-sm" + className="w-18 block h-[36px] min-w-0 rounded-md text-sm" onChange={(event) => { const newVal = { ...recurringEventState, @@ -99,12 +99,12 @@ export default function RecurringEventController({ />
-

{t("max")}

+

{t("for_a_maximum_of")}

{ const newVal = { @@ -116,7 +116,7 @@ export default function RecurringEventController({ }} />

- {t("occurrence", { + {t("events", { count: recurringEventState.count, })}

diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index d3bb515442..ffa11ebff6 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1150,5 +1150,8 @@ "attendee_name_info":"The person booking's name", "to": "To", "attendee_required_enter_number": "This will require the attendee to enter a phone number when booking", - "workflow_turned_on_successfully": "{{workflowName}} workflow turned {{offOn}} successfully" + "workflow_turned_on_successfully": "{{workflowName}} workflow turned {{offOn}} successfully", + "for_a_maximum_of": "For a maximum of", + "event_one": "event", + "event_other": "events" } diff --git a/packages/ui/v2/core/form/Select.tsx b/packages/ui/v2/core/form/Select.tsx index 6bbf6228b0..b438cabc51 100644 --- a/packages/ui/v2/core/form/Select.tsx +++ b/packages/ui/v2/core/form/Select.tsx @@ -34,7 +34,7 @@ function Select< return (