Skip to content

Commit

Permalink
Merge pull request #2006 from ever-co/fix/ui-adjustment-kanban
Browse files Browse the repository at this point in the history
Fix/UI adjustment kanban
  • Loading branch information
evereq authored Dec 15, 2023
2 parents 15a7790 + 8b394cd commit 8a478b8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
9 changes: 2 additions & 7 deletions apps/web/lib/components/Kanban.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export const EmptyKanbanDroppable = ({index,title, items}: {
{...provided.dragHandleProps}
aria-label={`${title}`}
>
<span className="">
<span>
{title}
</span>
</h2>
Expand All @@ -248,12 +248,7 @@ export const EmptyKanbanDroppable = ({index,title, items}: {
</div>

</header>
<KanbanDroppable
title={title}
droppableId={title}
type={'TASK'}
content={items}
/>

</>
:
null
Expand Down
18 changes: 10 additions & 8 deletions apps/web/lib/components/kanban-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default function Item(props: any) {
aria-label={`${item.status.name} ${item.content}`}
>
<div className="flex gap-1.5 border-b border-b-gray-200 pb-4">
<div className="flex flex-col justify- gap-5 grow">
<div className="flex flex-col gap-5 grow">
{item.tags && (
<TagList tags={item.tags}/>
)}
Expand All @@ -189,17 +189,19 @@ export default function Item(props: any) {
} rounded-sm mr-1`}/>

<span className="text-grey text-normal mr-1">#{item.number}</span>
<span className="text-black dark:text-white text-normal capitalize mr-2">{item.title}</span>
<span className="text-black dark:text-white text-normal capitalize mr-2 bg-blue line-clamp-2">
{item.title}
</span>
<Priority level={1}/>
</div>
</div>
<div className="flex flex-col justify-between w-[48px] items-end">
<div className="flex flex-col w-[48px] gap-4 items-end">
<VerticalThreeDot/>

<CircularProgress percentage={10}/>
</div>
</div>
<div className="flex flex-row justify-between items-center pt-5 pb-2 h-fit">
<div className="flex flex-row justify-between items-center pt-4 h-fit">

{item.status === TaskStatus.INPROGRESS ? (
<div className="flex flex-row items-center gap-2">
Expand All @@ -214,18 +216,18 @@ export default function Item(props: any) {
)}

<div className="relative ">
<div className="w-10 flex h-fit flex-row justify-end items-center relative bg-primary">
<div className="w-10 flex h-fit flex-row justify-end items-center relative">
{item.members.map((option: any, index: number)=> {
return (
<div className="relative w-[40px] h-[40px]" key={index}>
<Image
key={index}
src={option.user.imageUrl}
alt={`${option.user.firstName} avatar`}
height={40}
width={40}
fill={true}
className="absolute rounded-full border-2 border-white"
style={stackImages(index, item.members.length)}
/>
</div>
)
})}
</div>
Expand Down
20 changes: 11 additions & 9 deletions apps/web/pages/kanban/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@ const Kanban= () => {

if(index < numberOfImagesDisplayed) {
return (
<Image
key={index}
src={image.employee.user.imageUrl}
alt={image.title}
height={imageRadius*2}
width={imageRadius*2}
className="absolute rounded-full border-2 border-white"
style={stackImages(index, activeTeamMembers.length)}
/>)
<div className="relative w-[40px] h-[40px]" key={index}>
<Image

src={image.employee.user.imageUrl}
alt={image.title}
fill={true}
className="absolute rounded-full border-2 border-white"
style={stackImages(index, activeTeamMembers.length)}
/>
</div>
)
}

})}
Expand Down

0 comments on commit 8a478b8

Please sign in to comment.