Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
refactor: improve ui consistency
liyasthomasc6c479f681ef
diff --git a/packages/hoppscotch-app/components/http/TestResult.vue b/packages/hoppscotch-app/components/http/TestResult.vueindex e03535d28..a8aa8e469 100644--- a/packages/hoppscotch-app/components/http/TestResult.vue+++ b/packages/hoppscotch-app/components/http/TestResult.vue@@ -36,14 +36,14 @@<div class="divide-y divide-dividerLight"><divv-if="noEnvSelected && !globalHasAdditions"- class="flex bg-error p-4 text-secondaryDark"+ class="flex p-4 bg-error text-secondaryDark"><i class="mr-4 material-icons"> warning </i><div class="flex flex-col"><p>{{ t("environment.no_environment_description") }}</p>- <p class="space-x-2 flex mt-3">+ <p class="flex mt-3 space-x-2"><ButtonSecondary:label="t('environment.add_to_global')"class="text-tiny !bg-primary"diff --git a/packages/hoppscotch-app/components/http/TestResultEnv.vue b/packages/hoppscotch-app/components/http/TestResultEnv.vueindex 85920e9d8..fba1a8226 100644--- a/packages/hoppscotch-app/components/http/TestResultEnv.vue+++ b/packages/hoppscotch-app/components/http/TestResultEnv.vue@@ -21,7 +21,7 @@</div><spanv-if="global"- class="bg-accentLight px-1 rounded text-accentContrast text-tiny"+ class="px-1 rounded bg-accentLight text-accentContrast text-tiny">Global</span>diff --git a/packages/hoppscotch-app/components/smart/Radio.vue b/packages/hoppscotch-app/components/smart/Radio.vueindex fdefa19d4..7a65ad62c 100644--- a/packages/hoppscotch-app/components/smart/Radio.vue+++ b/packages/hoppscotch-app/components/smart/Radio.vue@@ -1,16 +1,12 @@<template>- <div- class="flex items-center flex-1 cursor-pointer transition flex-nowrap group hover:text-secondaryDark"- @click="$emit('change', value)"- >- <span class="inline-flex mr-4">- <i v-if="value === selected" class="text-accent material-icons">- radio_button_checked- </i>- <i v-else class="material-icons">radio_button_unchecked</i>- </span>- <span class="inline-flex font-semibold">{{ label }}</span>- </div>+ <SmartItem+ :label="label"+ :icon="+ value === selected ? 'radio_button_checked' : 'radio_button_unchecked'+ "+ :active="value === selected"+ @click.native="$emit('change', value)"+ /></template><script>diff --git a/packages/hoppscotch-app/components/smart/RadioGroup.vue b/packages/hoppscotch-app/components/smart/RadioGroup.vueindex 31bc818be..f0363078b 100644--- a/packages/hoppscotch-app/components/smart/RadioGroup.vue+++ b/packages/hoppscotch-app/components/smart/RadioGroup.vue@@ -1,5 +1,5 @@<template>- <div class="flex flex-col space-y-4">+ <div class="flex flex-col"><SmartRadiov-for="(radio, index) in radios":key="`radio-${index}`"