diff --git a/components/TopTabs.tsx b/components/TopTabs.tsx index b65e2b783..404c62973 100644 --- a/components/TopTabs.tsx +++ b/components/TopTabs.tsx @@ -161,13 +161,13 @@ const TopTabsInner: React.FC = ({ if (!activeTabId || activeTabId === 'vault' || activeTabId === 'sftp') return; const container = tabsContainerRef.current; if (!container) return; - + // Find the active tab element const activeTabElement = container.querySelector(`[data-tab-id="${activeTabId}"]`) as HTMLElement | null; if (activeTabElement) { const containerRect = container.getBoundingClientRect(); const tabRect = activeTabElement.getBoundingClientRect(); - + // Check if tab is outside visible area if (tabRect.left < containerRect.left) { container.scrollLeft -= (containerRect.left - tabRect.left + 8); @@ -454,12 +454,12 @@ const TopTabsInner: React.FC = ({
{/* Left fade mask */} {canScrollLeft && ( -
)} - + {/* Scrollable container */}
= ({ > {renderOrderedTabs()}
- + {/* Right fade mask */} {canScrollRight && ( -