fix: overflow on log entries - closed #2738

This commit is contained in:
Liyas Thomas
2022-10-15 09:57:49 +05:30
parent a0ea00d0a3
commit 6e7d28db7b
4 changed files with 23 additions and 24 deletions

View File

@@ -98,17 +98,6 @@ declare module '@vue/runtime-core' {
HttpTestResultReport: typeof import('./components/http/TestResultReport.vue')['default'] HttpTestResultReport: typeof import('./components/http/TestResultReport.vue')['default']
HttpTests: typeof import('./components/http/Tests.vue')['default'] HttpTests: typeof import('./components/http/Tests.vue')['default']
HttpURLEncodedParams: typeof import('./components/http/URLEncodedParams.vue')['default'] HttpURLEncodedParams: typeof import('./components/http/URLEncodedParams.vue')['default']
IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default']
IconLucideCheckCircle: typeof import('~icons/lucide/check-circle')['default']
IconLucideChevronRight: typeof import('~icons/lucide/chevron-right')['default']
IconLucideInbox: typeof import('~icons/lucide/inbox')['default']
IconLucideInfo: typeof import('~icons/lucide/info')['default']
IconLucideLayers: typeof import('~icons/lucide/layers')['default']
IconLucideLoader: typeof import('~icons/lucide/loader')['default']
IconLucideMinus: typeof import('~icons/lucide/minus')['default']
IconLucideSearch: typeof import('~icons/lucide/search')['default']
IconLucideUser: typeof import('~icons/lucide/user')['default']
IconLucideUsers: typeof import('~icons/lucide/users')['default']
LensesHeadersRenderer: typeof import('./components/lenses/HeadersRenderer.vue')['default'] LensesHeadersRenderer: typeof import('./components/lenses/HeadersRenderer.vue')['default']
LensesHeadersRendererEntry: typeof import('./components/lenses/HeadersRendererEntry.vue')['default'] LensesHeadersRendererEntry: typeof import('./components/lenses/HeadersRendererEntry.vue')['default']
LensesRenderersHTMLLensRenderer: typeof import('./components/lenses/renderers/HTMLLensRenderer.vue')['default'] LensesRenderersHTMLLensRenderer: typeof import('./components/lenses/renderers/HTMLLensRenderer.vue')['default']

View File

@@ -1,12 +1,12 @@
<template> <template>
<div ref="container" class="flex flex-col flex-1 overflow-y-auto"> <div class="flex flex-col flex-1 overflow-auto whitespace-nowrap">
<div <div
class="sticky top-0 z-10 flex items-center justify-between flex-none pl-4 border-b bg-primary border-dividerLight" class="sticky top-0 z-10 flex items-center justify-between pl-4 border-b bg-primary border-dividerLight"
> >
<label for="log" class="py-2 font-semibold text-secondaryLight"> <label for="log" class="font-semibold text-secondaryLight">
{{ title }} {{ title }}
</label> </label>
<div> <div class="flex">
<ButtonSecondary <ButtonSecondary
v-tippy="{ theme: 'tooltip' }" v-tippy="{ theme: 'tooltip' }"
:title="t('action.delete')" :title="t('action.delete')"
@@ -40,10 +40,10 @@
<div <div
v-if="log.length !== 0" v-if="log.length !== 0"
ref="logs" ref="logs"
class="overflow-y-auto border-b border-dividerLight" class="flex flex-col overflow-y-auto border-b border-dividerLight"
> >
<div <div
class="flex flex-col h-auto h-full border-r divide-y divide-dividerLight border-dividerLight" class="flex flex-col h-full border-r divide-y divide-dividerLight border-dividerLight"
> >
<RealtimeLogEntry <RealtimeLogEntry
v-for="(entry, index) in log" v-for="(entry, index) in log"
@@ -86,8 +86,7 @@ const emit = defineEmits<{
const t = useI18n() const t = useI18n()
const container = ref<HTMLElement | null>(null) const logs = ref<HTMLElement>()
const logs = ref<HTMLElement | null>(null)
const autoScrollEnabled = ref(true) const autoScrollEnabled = ref(true)

View File

@@ -58,10 +58,13 @@
</div> </div>
</div> </div>
<div <div
class="w-full h-full contents" class="flex w-full h-full"
:class="{ :class="[
'!flex flex-col flex-1 overflow-y-auto ': vertical, {
}" 'flex-col flex-1 overflow-y-auto ': vertical,
},
contentStyles,
]"
> >
<slot></slot> <slot></slot>
</div> </div>
@@ -111,6 +114,10 @@ const props = defineProps({
type: String, type: String,
required: true, required: true,
}, },
contentStyles: {
type: String,
default: "",
},
}) })
const emit = defineEmits<{ const emit = defineEmits<{

View File

@@ -1,5 +1,9 @@
<template> <template>
<SmartTabs v-model="currentTab"> <SmartTabs
v-model="currentTab"
styles="sticky bg-primary top-0 z-50"
content-styles="h-[calc(100%-var(--sidebar-primary-sticky-fold)-1px)]"
>
<SmartTab <SmartTab
v-for="{ target, title } in REALTIME_NAVIGATION" v-for="{ target, title } in REALTIME_NAVIGATION"
:id="target" :id="target"