refactor(tasks-list): update column widths for improved layout and responsiveness
- Adjusted column widths in the TasksList component to use percentage-based values for better adaptability across different screen sizes. - Enhanced text styling for task names and project names to improve readability and visual consistency.
This commit is contained in:
@@ -123,11 +123,11 @@ const TasksList: React.FC = React.memo(() => {
|
|||||||
<span>{t('tasks.name')}</span>
|
<span>{t('tasks.name')}</span>
|
||||||
</Flex>
|
</Flex>
|
||||||
),
|
),
|
||||||
width: '150px',
|
width: '40%',
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||||
<Tooltip title={record.name}>
|
<Tooltip title={record.name}>
|
||||||
<Typography.Text ellipsis={{ tooltip: true }} style={{ maxWidth: 150 }}>
|
<Typography.Text style={{ flex: 1, marginRight: 8 }}>
|
||||||
{record.name}
|
{record.name}
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@@ -155,13 +155,12 @@ const TasksList: React.FC = React.memo(() => {
|
|||||||
{
|
{
|
||||||
key: 'project',
|
key: 'project',
|
||||||
title: t('tasks.project'),
|
title: t('tasks.project'),
|
||||||
width: '120px',
|
width: '25%',
|
||||||
render: (_, record) => {
|
render: (_, record) => {
|
||||||
return (
|
return (
|
||||||
<Tooltip title={record.project_name}>
|
<Tooltip title={record.project_name}>
|
||||||
<Typography.Paragraph
|
<Typography.Paragraph
|
||||||
style={{ margin: 0, paddingInlineEnd: 6, maxWidth: 120 }}
|
style={{ margin: 0, paddingInlineEnd: 6 }}
|
||||||
ellipsis={{ tooltip: true }}
|
|
||||||
>
|
>
|
||||||
<Badge color={record.project_color || 'blue'} style={{ marginInlineEnd: 4 }} />
|
<Badge color={record.project_color || 'blue'} style={{ marginInlineEnd: 4 }} />
|
||||||
{record.project_name}
|
{record.project_name}
|
||||||
@@ -173,7 +172,7 @@ const TasksList: React.FC = React.memo(() => {
|
|||||||
{
|
{
|
||||||
key: 'status',
|
key: 'status',
|
||||||
title: t('tasks.status'),
|
title: t('tasks.status'),
|
||||||
width: '180px',
|
width: '20%',
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<HomeTasksStatusDropdown task={record} teamId={record.team_id || ''} />
|
<HomeTasksStatusDropdown task={record} teamId={record.team_id || ''} />
|
||||||
),
|
),
|
||||||
@@ -181,7 +180,7 @@ const TasksList: React.FC = React.memo(() => {
|
|||||||
{
|
{
|
||||||
key: 'dueDate',
|
key: 'dueDate',
|
||||||
title: t('tasks.dueDate'),
|
title: t('tasks.dueDate'),
|
||||||
width: '180px',
|
width: '15%',
|
||||||
dataIndex: 'end_date',
|
dataIndex: 'end_date',
|
||||||
render: (_, record) => <HomeTasksDatePicker record={record} />,
|
render: (_, record) => <HomeTasksDatePicker record={record} />,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user