Skip to content

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

refactor(json-viewer): input monospace font (#485)

Marvin9125dcf9c6bd
diff --git a/src/tools/json-viewer/json-viewer.vue b/src/tools/json-viewer/json-viewer.vue
index 8abf77e2..3928a44f 100644
--- a/src/tools/json-viewer/json-viewer.vue
+++ b/src/tools/json-viewer/json-viewer.vue
@@ -41,16 +41,17 @@ const rawJsonValidation = useValidation({
:feedback="rawJsonValidation.message"
:validation-status="rawJsonValidation.status"
>
- <n-input
+ <c-input-text
ref="inputElement"
v-model:value="rawJson"
placeholder="Paste your raw JSON here..."
- type="textarea"
rows="20"
+ multiline
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
+ monospace
/>
</n-form-item>
<n-form-item label="Prettified version of your JSON">