From 91c42b84d773ff200e9bae5147edaf61d662ff6b Mon Sep 17 00:00:00 2001 From: RohitR311 Date: Wed, 8 Jan 2025 21:54:26 +0530 Subject: [PATCH] feat: change styling for remote browser tab --- src/components/molecules/BrowserTabs.tsx | 61 ++++-------------------- 1 file changed, 9 insertions(+), 52 deletions(-) diff --git a/src/components/molecules/BrowserTabs.tsx b/src/components/molecules/BrowserTabs.tsx index 09396ce8..0648825a 100644 --- a/src/components/molecules/BrowserTabs.tsx +++ b/src/components/molecules/BrowserTabs.tsx @@ -32,30 +32,15 @@ export const BrowserTabs = ( return ( - {/* Synced border color */} + {/* Synced border color */} {tabs.map((tab, index) => { return ( @@ -63,15 +48,8 @@ export const BrowserTabs = ( key={`tab-${index}`} id={`tab-${index}`} sx={{ - backgroundColor: '#f5f5f5', // Synced dark background for tabs - borderRadius: '8px 8px 0px 0px', - marginRight: '8px', - minHeight: '48px', - textTransform: 'none', - fontWeight: '500', - fontSize: '14px', - color: 'black', // Synced light gray text color - + background: 'white', + borderRadius: '5px 5px 0px 0px', '&.Mui-selected': { backgroundColor:` ${isDarkMode?"#2a2a2a":"#f5f5f5"}`, // Synced selected tab color color: '#ff00c3', // Slightly lighter text when selected @@ -94,18 +72,7 @@ export const BrowserTabs = ( })} - {/* - + - */} + {/* */} ); } @@ -123,22 +90,12 @@ const CloseButton = ({ closeTab, disabled }: CloseButtonProps) => { onClick={closeTab} disabled={disabled} sx={{ - height: '28px', - width: '28px', - padding: '4px', - backgroundColor: '#3A3A3A', // Synced dark gray background - borderRadius: '50%', - '&:hover': { - backgroundColor: '#505050', // Synced hover color for close button - color: '#FFFFFF', - }, - '&.Mui-disabled': { - opacity: 0.4, // Lower opacity for disabled state - }, - transition: 'background-color 0.3s ease, color 0.3s ease', + height: '34px', + '&:hover': { color: 'white', backgroundColor: '#1976d2' } }} + component="span" > - + ); }