- Added functionality to navigate back to parent tasks for sub-tasks in the task drawer. - Introduced a breadcrumb component to visually represent the hierarchy of tasks, improving user navigation. - Updated task drawer header to display the current task name with truncation and tooltip for better readability. - Enhanced styling for task name display and breadcrumb for improved user experience.
88 lines
1.8 KiB
CSS
88 lines
1.8 KiB
CSS
.task-hierarchy-breadcrumb {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.task-hierarchy-breadcrumb .ant-breadcrumb {
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.task-hierarchy-breadcrumb .ant-breadcrumb-link {
|
|
color: inherit;
|
|
}
|
|
|
|
.task-hierarchy-breadcrumb .ant-breadcrumb-separator {
|
|
color: #8c8c8c;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
/* Dark mode styles */
|
|
[data-theme='dark'] .task-hierarchy-breadcrumb .ant-breadcrumb-separator {
|
|
color: #595959;
|
|
}
|
|
|
|
/* Back button styles */
|
|
.task-hierarchy-breadcrumb .ant-btn-link {
|
|
padding: 0;
|
|
height: auto;
|
|
font-size: 14px;
|
|
line-height: 1.3;
|
|
max-width: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.task-hierarchy-breadcrumb .ant-btn-link .anticon {
|
|
margin-right: 0; /* Remove default margin */
|
|
}
|
|
|
|
.task-hierarchy-breadcrumb .ant-btn-link:hover {
|
|
color: #40a9ff;
|
|
}
|
|
|
|
[data-theme='dark'] .task-hierarchy-breadcrumb .ant-btn-link:hover {
|
|
color: #40a9ff;
|
|
}
|
|
|
|
/* Current task name styles */
|
|
.task-hierarchy-breadcrumb .current-task-name {
|
|
font-size: 14px;
|
|
color: #000000d9;
|
|
font-weight: 500;
|
|
max-width: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
[data-theme='dark'] .task-hierarchy-breadcrumb .current-task-name {
|
|
color: #ffffffd9;
|
|
}
|
|
|
|
/* Breadcrumb item container */
|
|
.task-hierarchy-breadcrumb .ant-breadcrumb-item {
|
|
max-width: 220px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Ensure breadcrumb items don't break the layout */
|
|
.task-hierarchy-breadcrumb .ant-breadcrumb ol {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Better alignment for breadcrumb items */
|
|
.task-hierarchy-breadcrumb .ant-breadcrumb-item .ant-breadcrumb-link {
|
|
display: flex;
|
|
align-items: center;
|
|
} |