fix: task gantt popup text not visible in light theme (backport #53882) (#54094)

Co-authored-by: Sakthivel Murugan S <129778327+ssakthivelmurugan@users.noreply.github.com>
fix: task gantt popup text not visible in light theme (#53882)
This commit is contained in:
mergify[bot]
2026-04-07 06:40:45 +00:00
committed by GitHub
parent 454271ad68
commit 995a29e3e1

View File

@@ -35,30 +35,30 @@ frappe.listview_settings["Task"] = {
},
gantt_custom_popup_html: function (ganttobj, task) {
let html = `
<a class="text-white mb-2 inline-block cursor-pointer"
href="/app/task/${ganttobj.id}"">
<a class="mb-2 inline-block cursor-pointer"
href="/app/task/${ganttobj.id}">
${ganttobj.name}
</a>
`;
if (task.project) {
html += `<p class="mb-1">${__("Project")}:
<a class="text-white inline-block"
href="/app/project/${task.project}"">
<a class="inline-block"
href="/app/project/${task.project}">
${task.project}
</a>
</p>`;
}
html += `<p class="mb-1">
${__("Progress")}:
<span class="text-white">${ganttobj.progress}%</span>
<span>${ganttobj.progress}%</span>
</p>`;
if (task._assign) {
const assign_list = JSON.parse(task._assign);
const assignment_wrapper = `
<span>Assigned to:</span>
<span class="text-white">
<span>
${assign_list.map((user) => frappe.user_info(user).fullname).join(", ")}
</span>
`;