From ca9cc320ed943113565399d90ea3733c9d9eb9f2 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 12 Sep 2025 08:54:04 -0500 Subject: [PATCH] Optimized outdated env var scroll --- src/admin/insights/AdminAppInsightsClient.tsx | 8 +++++--- src/components/EnvVar.tsx | 6 ++++-- src/components/MaskedScroll.tsx | 7 ++++++- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/admin/insights/AdminAppInsightsClient.tsx b/src/admin/insights/AdminAppInsightsClient.tsx index dc5b5847..87b3759e 100644 --- a/src/admin/insights/AdminAppInsightsClient.tsx +++ b/src/admin/insights/AdminAppInsightsClient.tsx @@ -47,6 +47,7 @@ import IconTag from '@/components/icons/IconTag'; import IconPhoto from '@/components/icons/IconPhoto'; import { HiOutlineDocumentText } from 'react-icons/hi'; import { ReactNode } from 'react'; +import MaskedScroll from '@/components/MaskedScroll'; const DEBUG_COMMIT_SHA = '4cd29ed'; const DEBUG_COMMIT_MESSAGE = 'Long commit message for debugging purposes'; @@ -272,14 +273,15 @@ export default function AdminAppInsightsClient({ when including the following deprecated environment variables:
{usedDeprecatedEnvVars.map(({ old, replacement }) => ( -
{old}
- -
+ + ))}
} diff --git a/src/components/EnvVar.tsx b/src/components/EnvVar.tsx index 451bba1c..1f360b6b 100644 --- a/src/components/EnvVar.tsx +++ b/src/components/EnvVar.tsx @@ -9,6 +9,7 @@ export default function EnvVar({ accessory, includeCopyButton = true, trailingContent, + maskScroll = true, className, }: { variable: string, @@ -16,16 +17,17 @@ export default function EnvVar({ accessory?: ReactNode, includeCopyButton?: boolean, trailingContent?: ReactNode, + maskScroll?: boolean, className?: string, }) { return ( + enabled?: boolean } & HTMLAttributes & Omit[0], 'ref'>) { const refInternal = useRef(null); @@ -34,7 +36,10 @@ export default function MaskedScroll({ return
{children}
;