Skip to content

A self-hosted media server and file management system

fix: pulse queries and requests are flush with horizontal scrollbars

aminnausinab69cabcf8b4
diff --git a/resources/js/components/cards/pulse/PulseQueues.vue b/resources/js/components/cards/pulse/PulseQueues.vue
index 53544aa4..a9fb82dc 100644
--- a/resources/js/components/cards/pulse/PulseQueues.vue
+++ b/resources/js/components/cards/pulse/PulseQueues.vue
@@ -70,7 +70,7 @@ function scale(data: { [key: string]: any }) {
<PulseScroll :expand="true" :loading="isLoading ?? true">
<PulseNoResults :isLoading="isLoading" v-if="!queues || (Object.keys(queues)?.length ?? 0) == 0" />
- <div v-else-if="queues" class="mx-px mb-px grid gap-3">
+ <div v-else-if="queues" class="mx-px mb-px grid gap-3 pb-2">
<div v-for="queue in Object.keys(queues)" :key="queue">
<h3 class="text-foreground-6 font-bold">
<template v-if="pulseData?.queues?.showConnection">
@@ -82,7 +82,7 @@ function scale(data: { [key: string]: any }) {
</h3>
<div class="relative mt-3">
<div
- class="bg-primary-muted after:border-l-primary-muted absolute -top-2 -left-px flex h-4 max-w-fit items-center rounded-sm px-1 text-xs leading-none font-bold text-white after:absolute after:top-[calc(50%-var(--triangle-size))] after:right-[calc(-1*var(--triangle-size))] after:border-t-(length:--triangle-size) after:border-b-(length:--triangle-size) after:border-l-(length:--triangle-size) after:border-transparent after:[--triangle-size:4px]"
+ class="bg-primary-muted after:border-l-primary-muted absolute -top-2 -left-px flex h-4 max-w-fit items-center rounded-sm px-1 text-xs leading-none font-bold text-white after:absolute after:top-[calc(50%-var(--triangle-size))] after:-right-(--triangle-size) after:border-t-(length:--triangle-size) after:border-b-(length:--triangle-size) after:border-l-(length:--triangle-size) after:border-transparent after:[--triangle-size:4px]"
>
<span
v-if="pulseData?.queues?.config.sample_rate && pulseData.queues.config.sample_rate < 1"
diff --git a/resources/js/components/cards/pulse/PulseRequests.vue b/resources/js/components/cards/pulse/PulseRequests.vue
index 0f9a2f27..4a66d0d7 100644
--- a/resources/js/components/cards/pulse/PulseRequests.vue
+++ b/resources/js/components/cards/pulse/PulseRequests.vue
@@ -75,11 +75,11 @@ function scale(data: { [key: string]: any }) {
<PulseScroll :expand="true" :loading="isLoading ?? true">
<PulseNoResults :isLoading="isLoading" v-if="!requests || (Object.keys(requests)?.length ?? 0) == 0" />
- <div v-else-if="requests" class="mx-px mb-px grid gap-3">
+ <div v-else-if="requests" class="mx-px mb-px grid gap-3 pb-2">
<div v-for="request in Object.keys(requests)" :key="request">
<div class="relative mt-3">
<div
- class="bg-primary-muted after:border-l-primary-muted absolute -top-2 -left-px flex h-4 max-w-fit items-center rounded-sm px-1 text-xs leading-none font-bold text-white after:absolute after:top-[calc(50%-var(--triangle-size))] after:right-[calc(-1*var(--triangle-size))] after:border-t-(length:--triangle-size) after:border-b-(length:--triangle-size) after:border-l-(length:--triangle-size) after:border-transparent after:[--triangle-size:4px]"
+ class="bg-primary-muted after:border-l-primary-muted absolute -top-2 -left-px flex h-4 max-w-fit items-center rounded-sm px-1 text-xs leading-none font-bold text-white after:absolute after:top-[calc(50%-var(--triangle-size))] after:-right-(--triangle-size) after:border-t-(length:--triangle-size) after:border-b-(length:--triangle-size) after:border-l-(length:--triangle-size) after:border-transparent after:[--triangle-size:4px]"
>
<span
v-if="config.sample_rate && pulseData.requests.config.sample_rate < 1"
diff --git a/resources/js/components/cards/pulse/PulseSlowQueries.vue b/resources/js/components/cards/pulse/PulseSlowQueries.vue
index c57d43a7..376570c4 100644
--- a/resources/js/components/cards/pulse/PulseSlowQueries.vue
+++ b/resources/js/components/cards/pulse/PulseSlowQueries.vue
@@ -106,7 +106,7 @@ const config = computed(() => {
<PulseTd class="max-w-px truncate p-0!">
<div class="relative">
<div
- class="dark:bg-surface-1 text-foreground-i dark:text-foreground-0 block overflow-x-auto rounded-l-md bg-neutral-800 py-4 text-xs whitespace-nowrap [scrollbar-color:var(--color-neutral-500)_transparent] [scrollbar-width:thin]"
+ class="dark:bg-surface-1 text-foreground-i dark:text-foreground-0 block scrollbar-thin [scrollbar-color:var(--color-neutral-500)_transparent] overflow-x-auto rounded-l-md bg-neutral-800 py-4 text-xs whitespace-nowrap"
>
<code class="px-3 whitespace-nowrap" v-html="query.sql"></code>
<p v-if="query.location" class="mt-3 px-3 leading-none text-neutral-400">