Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/app/detail/ui/TaskCardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,7 @@ export const TaskCardList = ({
flexShrink: 1,
}}
>
<TaskTitle
variant={variant == 'task' ? 'list' : 'subtasks'}
title={task.title}
isClient={mode === UserRole.Client}
/>
<TaskTitle variant={variant == 'task' ? 'list' : 'subtasks'} title={task.title} />

{(task.subtaskCount > 0 || task.isArchived) && (
<Stack direction="row" sx={{ display: 'flex', gap: '12px', flexShrink: 0, alignItems: 'center' }}>
Expand Down Expand Up @@ -316,7 +312,7 @@ export const TaskCardList = ({
}}
>
{task.dueDate && (
<Box sx={{ minWidth: '55px', display: 'flex', justifyContent: 'flex-end' }}>
<Box sx={{ display: 'flex', justifyContent: 'flex-end', whiteSpace: 'nowrap' }}>
<DatePickerComponent
getDate={(date) => {
const isoDate = DateStringSchema.parse(formatDate(date))
Expand Down
4 changes: 1 addition & 3 deletions src/components/atoms/TaskTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import { CopilotTooltip } from './CopilotTooltip'
interface TaskTitleProps {
title?: string
variant?: 'board' | 'list' | 'subtasks'
isClient?: boolean
}

const TaskTitle = ({ title, variant = 'board', isClient = false }: TaskTitleProps) => {
const TaskTitle = ({ title, variant = 'board' }: TaskTitleProps) => {
const textRef = useRef<HTMLElement>(null)
const [isOverflowing, setIsOverflowing] = useState(false)

Expand Down Expand Up @@ -50,7 +49,6 @@ const TaskTitle = ({ title, variant = 'board', isClient = false }: TaskTitleProp
flexShrink: 1,
flexGrow: 0,
minWidth: 0,
maxWidth: isClient ? '105px' : 'none',
}}
>
{title}
Expand Down
Loading