Skip to content

Collection of handy online tools for developers, with great UX.

refactor(math-evaluator): improved search and UX (#713)

Corentin THOMASSET58de8970f534
diff --git a/src/tools/math-evaluator/index.ts b/src/tools/math-evaluator/index.ts
index 3dc15f4f..2fa2b7c8 100644
--- a/src/tools/math-evaluator/index.ts
+++ b/src/tools/math-evaluator/index.ts
@@ -8,6 +8,9 @@ export const tool = defineTool({
keywords: [
'math',
'evaluator',
+ 'calculator',
+ 'expression',
+ 'abs',
'acos',
'acosh',
'acot',
@@ -31,6 +34,7 @@ export const tool = defineTool({
'sech',
'sin',
'sinh',
+ 'sqrt',
'tan',
'tanh',
],
diff --git a/src/tools/math-evaluator/math-evaluator.vue b/src/tools/math-evaluator/math-evaluator.vue
index 3144a666..d31ed252 100644
--- a/src/tools/math-evaluator/math-evaluator.vue
+++ b/src/tools/math-evaluator/math-evaluator.vue
@@ -16,6 +16,9 @@ const result = computed(() => withDefaultOnError(() => evaluate(expression.value
multiline
placeholder="Your math expression (ex: 2*sqrt(6) )..."
raw-text
+ monospace
+ autofocus
+ autosize
/>
<c-card v-if="result !== ''" title="Result " mt-5>