mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-09 21:30:54 +00:00
fix italic
This commit is contained in:
@@ -71,7 +71,7 @@ function QueryResultGroup({
|
|||||||
<Group justify="apart" wrap="nowrap">
|
<Group justify="apart" wrap="nowrap">
|
||||||
<Group justify="left" gap={5} wrap="nowrap">
|
<Group justify="left" gap={5} wrap="nowrap">
|
||||||
<Text size="lg">{model.label_multiple}</Text>
|
<Text size="lg">{model.label_multiple}</Text>
|
||||||
<Text size="sm" italic>
|
<Text size="sm" style={{ fontStyle: 'italic' }}>
|
||||||
{' '}
|
{' '}
|
||||||
- {query.results.count} <Trans>results</Trans>
|
- {query.results.count} <Trans>results</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
|
@@ -51,7 +51,7 @@ export function SettingList({
|
|||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Text size="sm" italic color="red">
|
<Text size="sm" style={{ fontStyle: 'italic' }} color="red">
|
||||||
Setting {key} not found
|
Setting {key} not found
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
@@ -59,7 +59,7 @@ export function SettingList({
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
{(keys || allKeys).length === 0 && (
|
{(keys || allKeys).length === 0 && (
|
||||||
<Text italic>
|
<Text style={{ fontStyle: 'italic' }}>
|
||||||
<Trans>No settings specified</Trans>
|
<Trans>No settings specified</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
@@ -58,7 +58,7 @@ export default function MachineManagementPanel() {
|
|||||||
</Group>
|
</Group>
|
||||||
{registryStatus?.registry_errors &&
|
{registryStatus?.registry_errors &&
|
||||||
registryStatus.registry_errors.length === 0 ? (
|
registryStatus.registry_errors.length === 0 ? (
|
||||||
<Text italic>
|
<Text style={{ fontStyle: 'italic' }}>
|
||||||
<Trans>There are no machine registry errors.</Trans>
|
<Trans>There are no machine registry errors.</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
) : (
|
) : (
|
||||||
|
@@ -149,7 +149,7 @@ export function BomTable({
|
|||||||
|
|
||||||
let text =
|
let text =
|
||||||
available_stock <= 0 ? (
|
available_stock <= 0 ? (
|
||||||
<Text c="red" italic>{t`No stock`}</Text>
|
<Text c="red" style={{ fontStyle: 'italic' }}>{t`No stock`}</Text>
|
||||||
) : (
|
) : (
|
||||||
available_stock
|
available_stock
|
||||||
);
|
);
|
||||||
@@ -210,7 +210,9 @@ export function BomTable({
|
|||||||
sortable: false, // TODO: Custom sorting via API
|
sortable: false, // TODO: Custom sorting via API
|
||||||
render: (record: any) => {
|
render: (record: any) => {
|
||||||
if (record.consumable) {
|
if (record.consumable) {
|
||||||
return <Text italic>{t`Consumable item`}</Text>;
|
return (
|
||||||
|
<Text style={{ fontStyle: 'italic' }}>{t`Consumable item`}</Text>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let can_build = availableStockQuantity(record) / record.quantity;
|
let can_build = availableStockQuantity(record) / record.quantity;
|
||||||
|
@@ -109,7 +109,10 @@ export default function BuildLineTable({ params = {} }: { params?: any }) {
|
|||||||
available > 0 ? (
|
available > 0 ? (
|
||||||
available
|
available
|
||||||
) : (
|
) : (
|
||||||
<Text c="red" italic>{t`No stock available`}</Text>
|
<Text
|
||||||
|
c="red"
|
||||||
|
style={{ fontStyle: 'italic' }}
|
||||||
|
>{t`No stock available`}</Text>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
title={t`Available Stock`}
|
title={t`Available Stock`}
|
||||||
@@ -176,7 +179,7 @@ export default function BuildLineTable({ params = {} }: { params?: any }) {
|
|||||||
switchable: false,
|
switchable: false,
|
||||||
render: (record: any) => {
|
render: (record: any) => {
|
||||||
return record?.bom_item_detail?.consumable ? (
|
return record?.bom_item_detail?.consumable ? (
|
||||||
<Text italic>{t`Consumable item`}</Text>
|
<Text style={{ fontStyle: 'italic' }}>{t`Consumable item`}</Text>
|
||||||
) : (
|
) : (
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
progressLabel={true}
|
progressLabel={true}
|
||||||
|
@@ -85,7 +85,7 @@ function MachineTypeDrawer({ machineTypeSlug }: { machineTypeSlug: string }) {
|
|||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
{!machineType && (
|
{!machineType && (
|
||||||
<Text italic>
|
<Text style={{ fontStyle: 'italic' }}>
|
||||||
<Trans>Machine type not found.</Trans>
|
<Trans>Machine type not found.</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
@@ -192,7 +192,7 @@ function MachineDriverDrawer({
|
|||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
{!machineDriver && (
|
{!machineDriver && (
|
||||||
<Text italic>
|
<Text style={{ fontStyle: 'italic' }}>
|
||||||
<Trans>Machine driver not found.</Trans>
|
<Trans>Machine driver not found.</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
@@ -49,7 +49,11 @@ export function PartParameterTable({ partId }: { partId: any }) {
|
|||||||
render: (record) => {
|
render: (record) => {
|
||||||
let variant = String(partId) != String(record.part);
|
let variant = String(partId) != String(record.part);
|
||||||
|
|
||||||
return <Text italic={variant}>{record.template_detail?.name}</Text>;
|
return (
|
||||||
|
<Text style={{ fontStyle: variant ? 'italic' : 'inherit' }}>
|
||||||
|
{record.template_detail?.name}
|
||||||
|
</Text>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
DescriptionColumn({
|
DescriptionColumn({
|
||||||
|
@@ -306,7 +306,11 @@ export default function PluginListTable() {
|
|||||||
if (record.active) {
|
if (record.active) {
|
||||||
return record.meta.description;
|
return record.meta.description;
|
||||||
} else {
|
} else {
|
||||||
return <Text italic>{t`Description not available`}</Text>;
|
return (
|
||||||
|
<Text
|
||||||
|
style={{ fontStyle: 'italic' }}
|
||||||
|
>{t`Description not available`}</Text>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -351,7 +355,7 @@ export default function PluginListTable() {
|
|||||||
: t`The following plugin will be deactivated`}
|
: t`The following plugin will be deactivated`}
|
||||||
:
|
:
|
||||||
</Text>
|
</Text>
|
||||||
<Text size="lg" italic>
|
<Text size="lg" style={{ fontStyle: 'italic' }}>
|
||||||
{plugin_name}
|
{plugin_name}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
Reference in New Issue
Block a user