Skip to content

Commit

Permalink
Merge pull request #2964 from ever-co/2949-task-settings--ui-align-el…
Browse files Browse the repository at this point in the history
…ements-with-proper-size

fix: aling elements with proper size on settings / Create new issue
  • Loading branch information
evereq authored Aug 27, 2024
2 parents 1e30f3c + b336d48 commit 075d187
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions apps/web/lib/features/task/task-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,8 @@ export function StatusDropdown<T extends TStatusItem>({
: 'bg-[#F2F2F2] ',
'dark:bg-[#1B1D22] dark:border dark:border-[#FFFFFF33]',
taskStatusClassName,
isVersion && 'dark:text-white'
isVersion && 'dark:text-white',
'h-full'
)}
titleClassName={clsxm(hasBtnIcon && ['whitespace-nowrap overflow-hidden max-w-[90%]'])}
isVersion={isVersion}
Expand All @@ -1002,7 +1003,7 @@ export function StatusDropdown<T extends TStatusItem>({
);

const dropdown = (
<Tooltip label={disabledReason} enabled={!enabled} placement="auto">
<Tooltip className="h-full" label={disabledReason} enabled={!enabled} placement="auto">
<div className={clsxm('relative', className)}>
<Listbox
value={value?.value || value?.name || (multiple ? [] : null)}
Expand Down
15 changes: 8 additions & 7 deletions apps/web/lib/settings/task-statuses-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ export const TaskStatusesForm = ({ formOnly = false, onCreated }: StatusForm) =>
</Text>
)}

<div className="flex flex-col items-center sm:items-start">
<div className="flex">
<div className="flex flex-col gap-2 items-center sm:items-start">
<div className="flex gap-2">
{!createNew && !edit && (
<Button
variant="outline"
Expand All @@ -153,7 +153,7 @@ export const TaskStatusesForm = ({ formOnly = false, onCreated }: StatusForm) =>
{t('pages.settingsTeam.CREATE_NEW_STATUS')}
</Button>
)}
<Button onClick={openModal} variant="outline" className="mx-2 rounded-[10px]">
<Button onClick={openModal} variant="outline" className="rounded-[10px]">
Sort
</Button>
</div>
Expand All @@ -165,20 +165,20 @@ export const TaskStatusesForm = ({ formOnly = false, onCreated }: StatusForm) =>
</Text>
<div
className={clsxm(
'flex w-full gap-x-5 items-stretch mt-3',
'flex w-full gap-x-5 items-center mt-3',
formOnly && ['flex-wrap space-y-2']
)}
>
<InputField
type="text"
placeholder={t('pages.settingsTeam.CREATE_NEW_STATUS')}
className="mb-0 min-w-[350px]"
wrapperClassName="mb-0 rounded-lg"
className="mb-0 w-full"
wrapperClassName="mb-0 rounded-lg flex-grow"
{...register('name')}
/>
<StandardTaskStatusDropDown
onValueChange={(status) => setValue('template', status)}
className="h-[53px] w-[265px]"
className=" h-14 shrink-0"
/>
<IconPopover
iconList={iconList}
Expand All @@ -192,6 +192,7 @@ export const TaskStatusesForm = ({ formOnly = false, onCreated }: StatusForm) =>
<ColorPicker
defaultColor={edit ? edit.color : undefined}
onChange={(color) => setValue('color', color)}
className=" shrink-0"
/>
</div>
<div className="flex mt-5 gap-x-4">
Expand Down

0 comments on commit 075d187

Please sign in to comment.