Fix Tab Icon Spacing.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-05 13:37:54 -05:00
parent 33a1ac9be4
commit bc50f5e983
2 changed files with 26 additions and 35 deletions

View File

@@ -261,17 +261,15 @@ export function JobsDetailPage({
items={[
{
key: "general",
label: (
<span><Icon component={FaShieldAlt} />{t("menus.jobsdetail.general")}</span>
),
icon: <Icon component={FaShieldAlt} />,
label: t("menus.jobsdetail.general"),
forceRender: true,
children: <JobsDetailGeneral job={job} form={form} />,
},
{
key: "repairdata",
label: (
<span><BarsOutlined />{t("menus.jobsdetail.repairdata")}</span>
),
icon: <BarsOutlined />,
label: t("menus.jobsdetail.repairdata"),
forceRender: true,
children: (
<JobsLinesContainer
@@ -284,46 +282,40 @@ export function JobsDetailPage({
},
{
key: "rates",
label: (
<span><DollarCircleOutlined />{t("menus.jobsdetail.rates")}</span>
),
icon: <DollarCircleOutlined />,
label: t("menus.jobsdetail.rates"),
forceRender: true,
children: <JobsDetailRates job={job} form={form} />,
},
{
key: "totals",
label: (
<span><DollarCircleOutlined />{t("menus.jobsdetail.totals")}</span>
),
icon: <DollarCircleOutlined />,
label: t("menus.jobsdetail.totals"),
children: <JobsDetailTotals job={job} refetch={refetch} />,
},
{
key: "partssublet",
label: (
<span><ToolFilled />{t("menus.jobsdetail.partssublet")}</span>
),
icon: <ToolFilled />,
label: t("menus.jobsdetail.partssublet"),
children: <JobsDetailPliContainer job={job} />,
},
{
key: "labor",
label: (
<span><Icon component={FaHardHat} />{t("menus.jobsdetail.labor")}</span>
),
icon: <Icon component={FaHardHat} />,
label: t("menus.jobsdetail.labor"),
children: <JobsDetailLaborContainer job={job} jobId={job.id} />,
},
{
key: "dates",
label: (
<span><CalendarFilled />{t("menus.jobsdetail.dates")}</span>
),
icon: <CalendarFilled />,
label: t("menus.jobsdetail.dates"),
forceRender: true,
children: <JobsDetailDatesComponent job={job} />,
},
{
key: "documents",
label: (
<span><FileImageFilled />{t("jobs.labels.documents")}</span>
),
icon: <FileImageFilled />,
label: t("jobs.labels.documents"),
children: bodyshop.uselocalmediaserver ? (
<JobsDocumentsLocalGallery job={job} />
) : (
@@ -332,15 +324,14 @@ export function JobsDetailPage({
},
{
key: "notes",
label: (
<span><Icon component={FaRegStickyNote} />{t("jobs.labels.notes")}</span>
),
icon: <Icon component={FaRegStickyNote} />,
label: t("jobs.labels.notes"),
children: <JobNotesContainer jobId={job.id} />,
},
{
key: "audit",
label: (<span><HistoryOutlined />{t("jobs.labels.audit")}</span>
),
icon: <HistoryOutlined />,
label: t("jobs.labels.audit"),
children: <JobAuditTrail jobId={job.id} />,
},
]}

View File

@@ -77,22 +77,22 @@ export function ScoreboardContainer({ setBreadcrumbs, setSelectedHeader }) {
items={[
{
key: "sb",
label: (<span><Icon component={FaShieldAlt} />{t("scoreboard.labels.jobs")}</span>
),
icon: <Icon component={FaShieldAlt} />,
label: t("scoreboard.labels.jobs"),
forceRender: true,
children: <ScoreboardDisplay />,
},
{
key: "tickets",
label: (<span><FieldTimeOutlined />{t("scoreboard.labels.timeticketsemployee")}</span>
),
icon: <FieldTimeOutlined />,
label: t("scoreboard.labels.timeticketsemployee"),
forceRender: true,
children: <ScoreboardTimeTickets />,
},
{
key: "ticketsstats",
label: (<span><FieldTimeOutlined />{t("scoreboard.labels.allemployeetimetickets")}</span>
),
icon: <FieldTimeOutlined />,
label: t("scoreboard.labels.allemployeetimetickets"),
forceRender: true,
children: <ScoreboardTimeTicketsStats />,
},