From d8abdfc978e8eb8fe66a911bb97232620cf38c3a Mon Sep 17 00:00:00 2001 From: "LAPTOP-O016UC3M\\Qi Chen" <16399091+binaricat@users.noreply.github.com> Date: Tue, 9 Dec 2025 14:06:20 +0800 Subject: [PATCH] style: Clean up whitespace in TopTabs component for improved code readability --- components/TopTabs.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 && ( -