feat: highlight active line in codemirror when focused

This commit is contained in:
liyasthomas
2021-09-11 09:19:16 +05:30
parent 108f228edf
commit b2f93aa549
5 changed files with 13 additions and 9 deletions

View File

@@ -47,7 +47,7 @@
group-hover:text-secondaryDark
"
>
<span class="rounded select-all truncate">
<span class="rounded-sm select-all truncate">
{{ header.key }}
</span>
</span>
@@ -61,7 +61,7 @@
group-hover:text-secondaryDark
"
>
<span class="rounded select-all truncate">
<span class="rounded-sm select-all truncate">
{{ header.value }}
</span>
</span>

View File

@@ -53,7 +53,6 @@
import { ref, useContext, computed, reactive } from "@nuxtjs/composition-api"
import { useCodemirror } from "~/helpers/editor/codemirror"
import { copyToClipboard } from "~/helpers/utils/clipboard"
import "codemirror/mode/yaml/yaml"
import { HoppRESTResponse } from "~/helpers/types/HoppRESTResponse"
const props = defineProps<{
@@ -100,7 +99,7 @@ useCodemirror(
responseBodyText,
reactive({
extendedEditorConfig: {
mode: "text/x-yaml",
mode: "text/plain",
readOnly: true,
lineWrapping: linewrapEnabled,
},

View File

@@ -501,7 +501,6 @@ export default defineComponent({
@apply overflow-y-hidden;
@apply resize-none;
@apply focus:outline-none;
@apply transition;
}
.env-input::-webkit-scrollbar {