fix: codemirror search bar misaligned (#4203)

Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Nivedin
2024-07-22 17:04:53 +05:30
committed by GitHub
parent 801df8ea97
commit 7652dab9c4
7 changed files with 7 additions and 50 deletions

View File

@@ -159,6 +159,7 @@ declare module 'vue' {
IconLucideAlertTriangle: typeof import('~icons/lucide/alert-triangle')['default'] IconLucideAlertTriangle: typeof import('~icons/lucide/alert-triangle')['default']
IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default'] IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default']
IconLucideArrowUpRight: typeof import('~icons/lucide/arrow-up-right')['default'] IconLucideArrowUpRight: typeof import('~icons/lucide/arrow-up-right')['default']
IconLucideBrush: typeof import('~icons/lucide/brush')['default']
IconLucideCheckCircle: typeof import('~icons/lucide/check-circle')['default'] IconLucideCheckCircle: typeof import('~icons/lucide/check-circle')['default']
IconLucideChevronRight: typeof import('~icons/lucide/chevron-right')['default'] IconLucideChevronRight: typeof import('~icons/lucide/chevron-right')['default']
IconLucideGlobe: typeof import('~icons/lucide/globe')['default'] IconLucideGlobe: typeof import('~icons/lucide/globe')['default']

View File

@@ -72,8 +72,8 @@
</tippy> </tippy>
</div> </div>
</div> </div>
<div class="h-full"> <div class="h-full relative overflow-auto flex flex-col flex-1">
<div ref="schemaEditor"></div> <div ref="schemaEditor" class="absolute inset-0 h-full"></div>
</div> </div>
</div> </div>
<component <component
@@ -183,9 +183,3 @@ defineActionHandler(
computed(() => !!props.response && props.response.length > 0) computed(() => !!props.response && props.response.length > 0)
) )
</script> </script>
<style lang="scss" scoped>
:deep(.cm-panels) {
@apply top-sidebarPrimaryStickyFold #{!important};
}
</style>

View File

@@ -120,11 +120,7 @@
</div> </div>
</div> </div>
<div class="h-full relative overflow-auto flex flex-col flex-1"> <div class="h-full relative overflow-auto flex flex-col flex-1">
<div <div ref="jsonResponse" class="absolute inset-0 h-full"></div>
ref="jsonResponse"
:class="toggleFilter ? 'responseToggleOn' : 'responseToggleOff'"
class="absolute inset-0 h-full"
></div>
</div> </div>
<div <div
v-if="outlinePath" v-if="outlinePath"
@@ -434,12 +430,4 @@ defineActionHandler("response.copy", () => copyResponse())
@apply transition; @apply transition;
@apply hover:text-secondary; @apply hover:text-secondary;
} }
:deep(.responseToggleOff .cm-panels) {
@apply top-lowerTertiaryStickyFold #{!important};
}
:deep(.responseToggleOn .cm-panels) {
@apply top-lowerFourthStickyFold #{!important};
}
</style> </style>

View File

@@ -121,9 +121,3 @@ useCodemirror(
defineActionHandler("response.file.download", () => downloadResponse()) defineActionHandler("response.file.download", () => downloadResponse())
defineActionHandler("response.copy", () => copyResponse()) defineActionHandler("response.copy", () => copyResponse())
</script> </script>
<style lang="scss" scoped>
:deep(.cm-panels) {
@apply top-lowerTertiaryStickyFold #{!important};
}
</style>

View File

@@ -1,8 +1,5 @@
<template> <template>
<div <div class="flex flex-1 flex-col">
class="flex flex-1 flex-col"
:class="{ eventFeildShown: showEventField }"
>
<div <div
v-if="showEventField" v-if="showEventField"
class="sticky z-10 flex flex-shrink-0 items-center justify-center overflow-x-auto border-b border-dividerLight bg-primary" class="sticky z-10 flex flex-shrink-0 items-center justify-center overflow-x-auto border-b border-dividerLight bg-primary"
@@ -130,8 +127,8 @@
/> />
</div> </div>
</div> </div>
<div class="h-full"> <div class="h-full relative overflow-auto flex flex-col flex-1">
<div ref="wsCommunicationBody" class="flex flex-1 flex-col"></div> <div ref="wsCommunicationBody" class="absolute inset-0"></div>
</div> </div>
</div> </div>
</template> </template>
@@ -276,18 +273,3 @@ const prettifyRequestBody = () => {
defineActionHandler("request.send-cancel", sendMessage) defineActionHandler("request.send-cancel", sendMessage)
</script> </script>
<style lang="scss" scoped>
:deep(.cm-panels) {
@apply top-upperSecondaryStickyFold #{!important};
}
.eventFeildShown :deep(.cm-panels),
.cmResponsePrimaryStickyFold :deep(.cm-panels) {
@apply top-upperTertiaryStickyFold #{!important};
}
.cmResponseSecondaryStickyFold :deep(.cm-panels) {
@apply top-upperFourthStickyFold #{!important};
}
</style>

View File

@@ -106,7 +106,6 @@
<RealtimeCommunication <RealtimeCommunication
:show-event-field="true" :show-event-field="true"
:is-connected="connectionState === 'CONNECTED'" :is-connected="connectionState === 'CONNECTED'"
class="cmResponseSecondaryStickyFold"
event-field-styles="top-upperSecondaryStickyFold" event-field-styles="top-upperSecondaryStickyFold"
sticky-header-styles="top-upperTertiaryStickyFold" sticky-header-styles="top-upperTertiaryStickyFold"
@send-message="sendMessage($event)" @send-message="sendMessage($event)"

View File

@@ -46,7 +46,6 @@
> >
<RealtimeCommunication <RealtimeCommunication
:is-connected="connectionState === 'CONNECTED'" :is-connected="connectionState === 'CONNECTED'"
class="cmResponsePrimaryStickyFold"
sticky-header-styles="top-upperSecondaryStickyFold" sticky-header-styles="top-upperSecondaryStickyFold"
@send-message="sendMessage($event)" @send-message="sendMessage($event)"
/> />