From 5219658b8f78f08aa13c4c0b9bc844fab00959e1 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Fri, 14 Aug 2026 17:44:00 -0700 Subject: [PATCH] fix(ui): stop the models tab strip from scrolling vertically The tab strip carried overflow-x-auto directly on the TabsList. CSS forces overflow-y from visible to auto once overflow-x is not visible, and the line variant's active-tab underline is an absolutely positioned ::after that hangs 5px below its trigger, so the strip picked up a pixel of vertical scroll on top of the horizontal scroll it actually wants. The scroll container now lives on a wrapper whose bottom padding leaves room for the underline, offset by a matching negative margin so the row keeps its exact geometry. --- .../(dashboard)/models-and-endpoints/page.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/page.tsx index 3fd4f0f8019..998f65629e0 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/page.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/page.tsx @@ -175,16 +175,18 @@ export default function ModelsAndEndpointsPage() { ) : (
- - {visibleSlugs.map((slug) => { - const key = slug || BASE_TAB_KEY; - return ( - - {tabLabel(slug)} - - ); - })} - +
+ + {visibleSlugs.map((slug) => { + const key = slug || BASE_TAB_KEY; + return ( + + {tabLabel(slug)} + + ); + })} + +
{lastRefreshed && ( Last Refreshed: {lastRefreshed}