From c450a4150e08bbac7f7f9f93be236c9b4e7d56d9 Mon Sep 17 00:00:00 2001 From: rozetko Date: Tue, 10 May 2022 17:30:42 +0400 Subject: [PATCH] more styles --- src/components/editors/IconsEditor.tsx | 102 ++++++++++++-------- src/components/editors/ThresholdsEditor.tsx | 8 +- 2 files changed, 68 insertions(+), 42 deletions(-) diff --git a/src/components/editors/IconsEditor.tsx b/src/components/editors/IconsEditor.tsx index ac6b6ee..db64e56 100644 --- a/src/components/editors/IconsEditor.tsx +++ b/src/components/editors/IconsEditor.tsx @@ -121,7 +121,6 @@ export function IconsEditor({ onChange, value, context }: StandardEditorProps { - console.log(value); // @ts-ignore icons[iconIdx][field][conditionIdx] = value; @@ -138,52 +137,63 @@ export function IconsEditor({ onChange, value, context }: StandardEditorProps { return (
- removeIcon(iconIdx)}> - onIconFieldChange(iconIdx, 'url', (evt.target as any).value)} - /> + removeIcon(iconIdx)} + tooltip="Delete Icon" + > +
+ onIconFieldChange(iconIdx, 'url', (evt.target as any).value)} + /> +
onIconFieldChange(iconIdx, 'position', newVal)} /> - onIconFieldChange(iconIdx, 'size', newVal)} - /> +
+ onIconFieldChange(iconIdx, 'size', newVal)} + /> +
{icon.conditions.map((condition, conditionIdx) => { return ( - - onConditionChange(iconIdx, conditionIdx, 'metrics', newVal)} - item={fieldNamePickerSettings} - /> - onConditionChange(iconIdx, conditionIdx, 'conditions', newVal)} - /> - - onConditionChange(iconIdx, conditionIdx, 'values', (evt.target as any).value) - } - /> - removeCondition(iconIdx, conditionIdx)} - > - +
+ + onConditionChange(iconIdx, conditionIdx, 'metrics', newVal)} + item={fieldNamePickerSettings} + /> + onConditionChange(iconIdx, conditionIdx, 'conditions', newVal)} + /> + + onConditionChange(iconIdx, conditionIdx, 'values', (evt.target as any).value) + } + /> + removeCondition(iconIdx, conditionIdx)} + tooltip="Delete Condition" + > + +
); })}