Skip to content
Snippets Groups Projects
Commit 18b7da5e authored by Leonardo Christino's avatar Leonardo Christino
Browse files

feat(css): update icons of query panel logic menu

parent 7845fff8
No related branches found
No related tags found
No related merge requests found
Pipeline #126749 failed
......@@ -20,7 +20,7 @@ export const MathFilters: Record<NumberFilterTypes, GeneralDescription<NumberFil
],
output: { name: '==', type: 'float' },
logic: ['==', '@1', '@2'],
icon: '==',
icon: '=',
},
[NumberFilterTypes.NOT_EQUAL]: {
key: 'numberFilterNotEqual',
......@@ -34,7 +34,7 @@ export const MathFilters: Record<NumberFilterTypes, GeneralDescription<NumberFil
],
output: { name: '!=', type: 'float' },
logic: ['!=', '@1', '@2'],
icon: '!=',
icon: '',
},
[NumberFilterTypes.LESS_THAN]: {
key: 'numberFilterLessThan',
......@@ -62,7 +62,7 @@ export const MathFilters: Record<NumberFilterTypes, GeneralDescription<NumberFil
],
output: { name: '<=', type: 'float' },
logic: ['<=', '@1', '@2'],
icon: '<=',
icon: '',
},
[NumberFilterTypes.GREATER_THAN]: {
key: 'numberFilterGreaterThan',
......@@ -91,7 +91,7 @@ export const MathFilters: Record<NumberFilterTypes, GeneralDescription<NumberFil
],
output: { name: '>=', type: 'float' },
logic: ['>=', '@1', '@2'],
icon: '>=',
icon: '',
},
};
......
......@@ -48,7 +48,7 @@ export const NumberFunctions: Record<NumberFunctionTypes, GeneralDescription<Num
],
output: { name: '*', type: 'float' },
logic: ['*', '@1', '@2'],
icon: '*',
icon: '×',
},
[NumberFunctionTypes.DIVIDE]: {
key: 'numberFunctionDivide',
......@@ -63,7 +63,7 @@ export const NumberFunctions: Record<NumberFunctionTypes, GeneralDescription<Num
],
output: { name: '/', type: 'float' },
logic: ['/', '@1', '@2'],
icon: '/',
icon: '÷',
},
};
......
......@@ -102,7 +102,11 @@ export const QuerySidePanel = (props: {
if (!props.draggable && props?.onClick) props.onClick(item);
}}
>
{item.icon && <span className="w-min">{item.icon}</span>}
{item.icon && (
<div className="w-[1rem] rounded-sm justify-center flex">
<span>{item.icon}</span>
</div>
)}
<span className="w-full">{item.name}</span>
<span className="flex scale-75">
{item.key.toLowerCase().includes('filter') && <FilterAltIcon fontSize="small" />}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment