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: ctrl+c shortcut, minor ui issues

liyasthomas91df36cccaef
diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss
index a1257fb71..5f7962bec 100644
--- a/assets/scss/styles.scss
+++ b/assets/scss/styles.scss
@@ -129,12 +129,14 @@ a {
@apply text-primary;
@apply font-semibold;
@apply py-1 px-2;
+ @apply truncate;
@apply shadow;
font-size: 88%;
line-height: var(--body-line-height);
kbd {
+ @apply inline-flex;
@apply font-sans;
@apply bg-gray-500;
@apply bg-opacity-45;
@@ -142,6 +144,7 @@ a {
@apply rounded-sm;
@apply px-1;
@apply ml-1;
+ @apply truncate;
}
}
diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss
index d4962f9d7..11badd6f7 100644
--- a/assets/scss/themes.scss
+++ b/assets/scss/themes.scss
@@ -28,7 +28,7 @@
// Tooltip color
--tooltip-color: theme("colors.true-gray.100");
// Popover color
- --popover-color: theme("colors.true-gray.800");
+ --popover-color: theme("colors.dark.700");
// Editor theme
--editor-theme: "merbivore_soft";
}
diff --git a/components/history/index.vue b/components/history/index.vue
index 37d6d0d31..e5cd5d44b 100644
--- a/components/history/index.vue
+++ b/components/history/index.vue
@@ -126,8 +126,11 @@ export default defineComponent({
const filterText = this.filterText.toLowerCase()
return Object.keys(entry).some((key) => {
let value = entry[key]
- value = typeof value !== "string" ? value.toString() : value
- return value.toLowerCase().includes(filterText)
+ if (value) {
+ value = typeof value !== "string" ? value.toString() : value
+ return value.toLowerCase().includes(filterText)
+ }
+ return false
})
})
},
diff --git a/components/smart/Tabs.vue b/components/smart/Tabs.vue
index cf12c996d..dfe61e697 100644
--- a/components/smart/Tabs.vue
+++ b/components/smart/Tabs.vue
@@ -1,6 +1,6 @@
<template>
<div class="flex flex-col flex-nowrap flex-1">
- <div class="rounded-t tabs hide-scrollbar relative" :class="styles">
+ <div class="tabs hide-scrollbar relative" :class="styles">
<div class="flex flex-1">
<div class="flex flex-1 justify-between">
<div class="flex">
diff --git a/helpers/keybindings.ts b/helpers/keybindings.ts
index 3d4a9bfef..7c7aea6da 100644
--- a/helpers/keybindings.ts
+++ b/helpers/keybindings.ts
@@ -38,7 +38,7 @@ export const bindings: {
} = {
"ctrl-g": "request.send-cancel",
"ctrl-i": "request.reset",
- "ctrl-c": "request.copy-link",
+ "ctrl-u": "request.copy-link",
"ctrl-s": "request.save",
"ctrl-shift-s": "request.save-as",
"alt-up": "request.method.next",
diff --git a/helpers/shortcuts.js b/helpers/shortcuts.js
index 9b1558405..57ca92723 100644
--- a/helpers/shortcuts.js
+++ b/helpers/shortcuts.js
@@ -34,7 +34,7 @@ export default [
label: "shortcut.request.save_to_collections",
},
{
- keys: [getPlatformSpecialKey(), "C"],
+ keys: [getPlatformSpecialKey(), "U"],
label: "shortcut.request.copy_request_link",
},
{