feature/IO-3103-Ant5-Notifications - Job Icons fixed (spacing)

This commit is contained in:
Dave Richer
2025-01-22 10:47:44 -08:00
parent 32bb04939f
commit d767302c4a

View File

@@ -392,7 +392,7 @@ export function JobsDetailPage({
{ {
key: "labor", key: "labor",
id: "job-details-labor", id: "job-details-labor",
icon: <Icon component={FaHardHat} />, icon: <Icon component={FaHardHat} style={{ marginRight: 15 }} />,
label: ( label: (
<LockWrapperComponent featureName="timetickets">{t("menus.jobsdetail.labor")}</LockWrapperComponent> <LockWrapperComponent featureName="timetickets">{t("menus.jobsdetail.labor")}</LockWrapperComponent>
), ),
@@ -421,7 +421,7 @@ export function JobsDetailPage({
{ {
key: "documents", key: "documents",
id: "job-details-documents", id: "job-details-documents",
icon: <FileImageFilled />, icon: <FileImageFilled style={{ marginRight: 10 }} />,
label: <LockWrapperComponent featureName="media">{t("jobs.labels.documents")}</LockWrapperComponent>, label: <LockWrapperComponent featureName="media">{t("jobs.labels.documents")}</LockWrapperComponent>,
children: bodyshop.uselocalmediaserver ? ( children: bodyshop.uselocalmediaserver ? (
<JobsDocumentsLocalGallery job={job} /> <JobsDocumentsLocalGallery job={job} />
@@ -449,12 +449,14 @@ export function JobsDetailPage({
}, },
{ {
key: "tasks", key: "tasks",
icon: <FaTasks />, icon: <FaTasks style={{ paddingTop: 3 }} />,
id: "job-details-tasks", id: "job-details-tasks",
label: ( label: (
<Space direction="horizontal"> <Space direction="horizontal" align="center">
{t("jobs.labels.tasks")} <span>{t("jobs.labels.tasks")}</span>
{job.tasks_aggregate.aggregate.count > 0 && <Badge count={job.tasks_aggregate.aggregate.count} />} {job.tasks_aggregate.aggregate.count > 0 && (
<Badge size="small" count={job.tasks_aggregate.aggregate.count} />
)}
</Space> </Space>
), ),
children: ( children: (