From 27c6fb8ab65c193b0f4530a9633f004faaf3ed52 Mon Sep 17 00:00:00 2001 From: Birusha Ndegeya <142086785+BirushaNdegeya@users.noreply.github.com> Date: Thu, 17 Oct 2024 23:01:10 +0200 Subject: [PATCH] fix: task input dropdowns (#3152) * fix: task input dropdowns * refactor: Implement Max-Height --- .../web/lib/features/auth-user-task-input.tsx | 96 +++++++++---------- apps/web/lib/features/task/task-status.tsx | 2 +- 2 files changed, 45 insertions(+), 53 deletions(-) diff --git a/apps/web/lib/features/auth-user-task-input.tsx b/apps/web/lib/features/auth-user-task-input.tsx index 343dff70b..70bfd69b4 100644 --- a/apps/web/lib/features/auth-user-task-input.tsx +++ b/apps/web/lib/features/auth-user-task-input.tsx @@ -7,63 +7,55 @@ import { useAtomValue } from 'jotai'; import { TaskEstimate } from './task/task-estimate'; import { TaskInput } from './task/task-input'; import { TaskLabels } from './task/task-labels'; -import { - ActiveTaskPropertiesDropdown, - ActiveTaskSizesDropdown, - ActiveTaskStatusDropdown -} from './task/task-status'; +import { ActiveTaskPropertiesDropdown, ActiveTaskSizesDropdown, ActiveTaskStatusDropdown } from './task/task-status'; import { useTranslations } from 'next-intl'; export function AuthUserTaskInput({ className }: IClassName) { - const t = useTranslations(); - const activeTeamTask = useAtomValue(activeTeamTaskState); - const { isTrackingEnabled } = useOrganizationTeams(); + const t = useTranslations(); + const activeTeamTask = useAtomValue(activeTeamTaskState); + const { isTrackingEnabled } = useOrganizationTeams(); - return ( -
- -
-
- - {t('common.ESTIMATE')}: - - -
+ return ( +
+ +
+
+ {t('common.ESTIMATE')}: + +
-
- +
+ - + - + - -
- {/*
+ +
+ {/*
@@ -73,7 +65,7 @@ export function AuthUserTaskInput({ className }: IClassName) {
*/} -
-
- ); +
+
+ ); } diff --git a/apps/web/lib/features/task/task-status.tsx b/apps/web/lib/features/task/task-status.tsx index f79fc5ab6..538dd12f4 100644 --- a/apps/web/lib/features/task/task-status.tsx +++ b/apps/web/lib/features/task/task-status.tsx @@ -1075,7 +1075,7 @@ export function StatusDropdown({ {items.map((item, i) => { const item_value = item?.value || item?.name;