fix: ctrl+c shortcut, minor ui issues

This commit is contained in:
liyasthomas
2021-08-23 10:22:07 +05:30
parent 294b1a5a7c
commit 91df36ccca
6 changed files with 12 additions and 6 deletions

View File

@@ -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;
}
}

View File

@@ -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";
}

View File

@@ -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
})
})
},

View File

@@ -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">

View File

@@ -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",

View File

@@ -34,7 +34,7 @@ export default [
label: "shortcut.request.save_to_collections",
},
{
keys: [getPlatformSpecialKey(), "C"],
keys: [getPlatformSpecialKey(), "U"],
label: "shortcut.request.copy_request_link",
},
{