Change warning message on Chamfer for a more discreet note in tooltip (#7002)
This commit is contained in:
@ -552,6 +552,12 @@ const ToolbarItemTooltipRichContent = ({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<p className="px-2 my-2 text-ch font-sans">{itemConfig.description}</p>
|
<p className="px-2 my-2 text-ch font-sans">{itemConfig.description}</p>
|
||||||
|
{itemConfig.extraNote && (
|
||||||
|
<p className="px-2 my-2 text-ch font-sans">
|
||||||
|
<span className="font-semibold">Note: </span>
|
||||||
|
{itemConfig.extraNote}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
{/* Add disabled reason if item is disabled */}
|
{/* Add disabled reason if item is disabled */}
|
||||||
{itemConfig.disabled && itemConfig.disabledReason && (
|
{itemConfig.disabled && itemConfig.disabledReason && (
|
||||||
<>
|
<>
|
||||||
|
@ -763,8 +763,6 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
|
|||||||
multiple: true,
|
multiple: true,
|
||||||
required: true,
|
required: true,
|
||||||
skip: false,
|
skip: false,
|
||||||
warningMessage:
|
|
||||||
'Chamfers cannot touch other chamfers yet. This is under development.',
|
|
||||||
hidden: (context) => Boolean(context.argumentsToSubmit.nodeToEdit),
|
hidden: (context) => Boolean(context.argumentsToSubmit.nodeToEdit),
|
||||||
},
|
},
|
||||||
length: {
|
length: {
|
||||||
|
@ -46,6 +46,7 @@ export type ToolbarItem = {
|
|||||||
| string
|
| string
|
||||||
| ((state: StateFrom<typeof modelingMachine>) => string | string[])
|
| ((state: StateFrom<typeof modelingMachine>) => string | string[])
|
||||||
description: string
|
description: string
|
||||||
|
extraNote?: string
|
||||||
links: { label: string; url: string }[]
|
links: { label: string; url: string }[]
|
||||||
isActive?: (state: StateFrom<typeof modelingMachine>) => boolean
|
isActive?: (state: StateFrom<typeof modelingMachine>) => boolean
|
||||||
disabledReason?:
|
disabledReason?:
|
||||||
@ -208,7 +209,15 @@ export const toolbarConfig: Record<ToolbarModeName, ToolbarMode> = {
|
|||||||
title: 'Chamfer',
|
title: 'Chamfer',
|
||||||
hotkey: 'C',
|
hotkey: 'C',
|
||||||
description: 'Bevel the edges of a 3D solid.',
|
description: 'Bevel the edges of a 3D solid.',
|
||||||
links: [{ label: 'KCL docs', url: 'https://zoo.dev/docs/kcl/chamfer' }],
|
extraNote:
|
||||||
|
'Chamfers cannot touch other chamfers yet. This is under development, see issue tracker.',
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
label: 'issue tracker',
|
||||||
|
url: 'https://github.com/KittyCAD/modeling-app/issues/6617',
|
||||||
|
},
|
||||||
|
{ label: 'KCL docs', url: 'https://zoo.dev/docs/kcl/chamfer' },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'shell',
|
id: 'shell',
|
||||||
|
Reference in New Issue
Block a user