Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: shortcut key size

Liyas Thomasb522ae9e051b
diff --git a/packages/hoppscotch-common/assets/scss/styles.scss b/packages/hoppscotch-common/assets/scss/styles.scss
index 4a5218483..ed8a09bb5 100644
--- a/packages/hoppscotch-common/assets/scss/styles.scss
+++ b/packages/hoppscotch-common/assets/scss/styles.scss
@@ -517,9 +517,10 @@ pre.ace_editor {
@apply bg-dividerLight;
@apply rounded;
@apply ml-2;
- @apply px-1;
- @apply min-w-[1.25rem];
- @apply min-h-[1.25rem];
+ @apply px-0.5;
+ @apply min-w-[1rem];
+ @apply min-h-[1rem];
+ @apply leading-none;
@apply items-center;
@apply justify-center;
@apply border border-dividerDark;
diff --git a/packages/hoppscotch-sh-admin/assets/scss/styles.scss b/packages/hoppscotch-sh-admin/assets/scss/styles.scss
index ba6365469..baaca34f6 100644
--- a/packages/hoppscotch-sh-admin/assets/scss/styles.scss
+++ b/packages/hoppscotch-sh-admin/assets/scss/styles.scss
@@ -582,9 +582,10 @@ pre.ace_editor {
@apply bg-dividerLight;
@apply rounded;
@apply ml-2;
- @apply px-1;
- @apply min-w-[1.25rem];
- @apply min-h-[1.25rem];
+ @apply px-0.5;
+ @apply min-w-[1rem];
+ @apply min-h-[1rem];
+ @apply leading-none;
@apply items-center;
@apply justify-center;
@apply border border-dividerDark;
diff --git a/packages/hoppscotch-ui/src/assets/scss/histoire.scss b/packages/hoppscotch-ui/src/assets/scss/histoire.scss
index d7cf6e2da..41462524a 100644
--- a/packages/hoppscotch-ui/src/assets/scss/histoire.scss
+++ b/packages/hoppscotch-ui/src/assets/scss/histoire.scss
@@ -572,9 +572,10 @@ pre.ace_editor {
@apply bg-dividerLight;
@apply rounded;
@apply ml-2;
- @apply px-1;
- @apply min-w-[1.25rem];
- @apply min-h-[1.25rem];
+ @apply px-0.5;
+ @apply min-w-[1rem];
+ @apply min-h-[1rem];
+ @apply leading-none;
@apply items-center;
@apply justify-center;
@apply border border-dividerDark;
diff --git a/packages/hoppscotch-ui/src/components/smart/Item.vue b/packages/hoppscotch-ui/src/components/smart/Item.vue
index 5f78da737..6ac1c64b0 100644
--- a/packages/hoppscotch-ui/src/components/smart/Item.vue
+++ b/packages/hoppscotch-ui/src/components/smart/Item.vue
@@ -51,7 +51,7 @@
class="items-center self-center ml-6 -mr-2 svg-icons"
:class="{ 'text-accent': activeInfoIcon }"
/>
- <div v-if="shortcut.length" class="ml-4 <sm:hidden font-medium">
+ <div v-if="shortcut.length" class="ml-4 inline-flex <sm:hidden font-medium">
<kbd
v-for="(key, index) in shortcut"
:key="`key-${index}`"