Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: dashboard drop down selector on mobile view (#1153)

Richard Krümmel1478aa9c2bf9
diff --git a/src/features/dashboard/components/TabsComponent.tsx b/src/features/dashboard/components/TabsComponent.tsx
index 2f9b3a5122..540908c7eb 100644
--- a/src/features/dashboard/components/TabsComponent.tsx
+++ b/src/features/dashboard/components/TabsComponent.tsx
@@ -21,6 +21,7 @@ export const TabComponent = ({ tabs }: TabComponentProps) => {
name="tabs"
className="block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"
defaultValue={0}
+ onChange={(e) => setSelectedIndex(Number(e.target.selectedIndex))}
>
{tabs.map((tab) => (
<option key={tab.tabTitle}>{tab.tabTitle}</option>