diff --git a/src/renderer/App.vue b/src/renderer/App.vue index 02f76d6a..d167c0f3 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -141,8 +141,11 @@ onMounted(() => { while (node) { if (node.nodeName.match(/^(input|textarea)$/i) || node.isContentEditable) { - InputMenu.popup({ window: getCurrentWindow() }); - break; + if (!node.parentNode.className.split(' ').includes('editor-query')) { + InputMenu.popup({ window: getCurrentWindow() }); + console.log(node.parentNode.className); + break; + } } node = node.parentNode; } diff --git a/src/renderer/components/ModalSettings.vue b/src/renderer/components/ModalSettings.vue index 0292523f..40e3881b 100644 --- a/src/renderer/components/ModalSettings.vue +++ b/src/renderer/components/ModalSettings.vue @@ -612,7 +612,7 @@ const otherContributors = computed(() => { return contributors .split(',') .filter(c => !c.includes(appAuthor)) - .sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())); + .sort((a, b) => a.toLowerCase().trim().localeCompare(b.toLowerCase())); }); const selectTab = (tab: string) => { diff --git a/src/renderer/components/QueryEditor.vue b/src/renderer/components/QueryEditor.vue index a513c04b..56de0351 100644 --- a/src/renderer/components/QueryEditor.vue +++ b/src/renderer/components/QueryEditor.vue @@ -3,6 +3,7 @@
@@ -54,7 +55,8 @@ const props = defineProps({ schema: { type: String, default: '' }, autoFocus: { type: Boolean, default: false }, readOnly: { type: Boolean, default: false }, - height: { type: Number, default: 200 } + height: { type: Number, default: 200 }, + editorClasses: { type: String, default: '' } }); const emit = defineEmits(['update:modelValue']); @@ -405,18 +407,17 @@ defineExpose({ editor }); .ace_gutter-cell.ace_breakpoint { &::before { - content: '\F0403'; + content: ''; position: absolute; - left: 3px; - top: 2px; - color: var(--primary-color); + left: 0px; + top: 8px; display: inline-block; - font: normal normal normal 24px/1 "Material Design Icons", sans-serif; - font-size: inherit; - text-rendering: auto; - line-height: inherit; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; + width: 0; + height: 0; + border-left: 8px solid transparent; + border-top: 8px solid transparent; + border-right: 8px solid var(--primary-color); + transform: rotate(-45deg); } } diff --git a/src/renderer/components/WorkspaceTabQuery.vue b/src/renderer/components/WorkspaceTabQuery.vue index 4ac481bf..24f5f96f 100644 --- a/src/renderer/components/WorkspaceTabQuery.vue +++ b/src/renderer/components/WorkspaceTabQuery.vue @@ -15,6 +15,7 @@ :schema="breadcrumbsSchema" :is-selected="isSelected" :height="editorHeight" + editor-classes="editor-query" />