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(ui): minor ui improvements
liyasthomas9698932bde2e
diff --git a/packages/hoppscotch-app/components/app/PowerSearch.vue b/packages/hoppscotch-app/components/app/PowerSearch.vueindex 054440755..8825d2bb2 100644--- a/packages/hoppscotch-app/components/app/PowerSearch.vue+++ b/packages/hoppscotch-app/components/app/PowerSearch.vue@@ -1,5 +1,10 @@<template>- <SmartModal v-if="show" full-width @close="$emit('hide-modal')">+ <SmartModal+ v-if="show"+ max-width="sm:max-w-md"+ full-width+ @close="$emit('hide-modal')"+ ><template #body><inputid="command"diff --git a/packages/hoppscotch-app/components/app/Sidenav.vue b/packages/hoppscotch-app/components/app/Sidenav.vueindex 529c2a824..d9b1b8a5a 100644--- a/packages/hoppscotch-app/components/app/Sidenav.vue+++ b/packages/hoppscotch-app/components/app/Sidenav.vue@@ -1,6 +1,6 @@<template><aside class="flex h-full justify-between md:flex-col">- <nav class="flex flex-nowrap md:flex-col">+ <nav class="flex flex-nowrap md:flex-col flex-1 md:flex-none"><NuxtLinkv-for="(navigation, index) in primaryNavigation":key="`navigation-${index}`"diff --git a/packages/hoppscotch-app/components/app/SlideOver.vue b/packages/hoppscotch-app/components/app/SlideOver.vueindex 0bab56418..eb519cd7e 100644--- a/packages/hoppscotch-app/components/app/SlideOver.vue+++ b/packages/hoppscotch-app/components/app/SlideOver.vue@@ -3,7 +3,7 @@<transition v-if="show" name="fade" appear><div class="inset-0 transition-opacity z-20 fixed" @keydown.esc="close()"><div- class="bg-primaryDark opacity-90 inset-0 absolute"+ class="bg-primaryLight opacity-90 inset-0 absolute"tabindex="0"@click="close()"></div>diff --git a/packages/hoppscotch-app/components/app/Support.vue b/packages/hoppscotch-app/components/app/Support.vueindex a2a4a2649..19f217c24 100644--- a/packages/hoppscotch-app/components/app/Support.vue+++ b/packages/hoppscotch-app/components/app/Support.vue@@ -2,6 +2,7 @@<SmartModalv-if="show":title="$t('support.title')"+ max-width="sm:max-w-md"@close="$emit('hide-modal')"><template #body>diff --git a/packages/hoppscotch-app/components/collections/ImportExport.vue b/packages/hoppscotch-app/components/collections/ImportExport.vueindex d3855dbd0..7a686d040 100644--- a/packages/hoppscotch-app/components/collections/ImportExport.vue+++ b/packages/hoppscotch-app/components/collections/ImportExport.vue@@ -2,6 +2,7 @@<SmartModalv-if="show":title="`${$t('modal.import_export')} ${$t('modal.collections')}`"+ max-width="sm:max-w-md"@close="hideModal"><template #actions>diff --git a/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue b/packages/hoppscotch-app/components/collections/graphql/ImportExport.vueindex dd859d761..925850000 100644--- a/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue+++ b/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue@@ -2,6 +2,7 @@<SmartModalv-if="show":title="`${$t('modal.import_export')} ${$t('modal.collections')}`"+ max-width="sm:max-w-md"@close="hideModal"><template #actions>diff --git a/packages/hoppscotch-app/components/environments/ImportExport.vue b/packages/hoppscotch-app/components/environments/ImportExport.vueindex 9fb533421..994fedc16 100644--- a/packages/hoppscotch-app/components/environments/ImportExport.vue+++ b/packages/hoppscotch-app/components/environments/ImportExport.vue@@ -2,6 +2,7 @@<SmartModalv-if="show":title="`${$t('modal.import_export')} ${$t('environment.title')}`"+ max-width="sm:max-w-md"@close="hideModal"><template #actions>diff --git a/packages/hoppscotch-app/components/firebase/Login.vue b/packages/hoppscotch-app/components/firebase/Login.vueindex eb47483f1..04ce5020f 100644--- a/packages/hoppscotch-app/components/firebase/Login.vue+++ b/packages/hoppscotch-app/components/firebase/Login.vue@@ -2,6 +2,7 @@<SmartModalv-if="show":title="`${$t('auth.login_to_hoppscotch')}`"+ max-width="sm:max-w-md"dialog@close="hideModal">diff --git a/packages/hoppscotch-app/components/smart/Modal.vue b/packages/hoppscotch-app/components/smart/Modal.vueindex 5c5bacfa4..32b0bb10f 100644--- a/packages/hoppscotch-app/components/smart/Modal.vue+++ b/packages/hoppscotch-app/components/smart/Modal.vue@@ -9,7 +9,7 @@><transition name="fade" appear><div- class="bg-primaryDark opacity-90 inset-0 transition fixed"+ class="bg-primaryLight opacity-90 inset-0 transition fixed"@touchstart="!dialog ? close() : null"@touchend="!dialog ? close() : null"@mouseup="!dialog ? close() : null"@@ -34,7 +34,7 @@<divclass="bg-primary- shadow-lg+ shadow-xltext-leftw-fulltransform@@ -42,12 +42,12 @@inline-blockalign-bottomoverflow-hidden- sm:max-w-md sm:align-middle- md:rounded-lg+ sm:align-middle sm:rounded-xl":class="[{ 'mt-24 md:mb-8': placement === 'top' },{ 'p-4': !fullWidth },+ maxWidth,]"><div@@ -122,6 +122,10 @@ export default defineComponent({type: Boolean,default: false,},+ maxWidth: {+ type: String,+ default: "sm:max-w-lg",+ },},setup() {const { disableKeybindings, enableKeybindings } = useKeybindingDisabler()