feat: change outpreview styling

This commit is contained in:
RohitR311
2025-01-08 21:04:43 +05:30
parent d6374ba1b7
commit 4df8b4c096

View File

@@ -125,7 +125,7 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
}
}, [hasScrapeListAction, hasScrapeSchemaAction, hasScreenshotAction, setIsOpen]);
const isDarkMode = useThemeMode();
const { darkMode} = useThemeMode();
return (
<Grid container>
@@ -135,9 +135,7 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
variant="contained"
color="primary"
sx={{
borderRadius: ' 0 0 10px 10px',
marginTop: '10px',
color: 'white',
position: 'absolute',
background: '#ff00c3',
@@ -162,8 +160,8 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
onOpen={toggleDrawer(true)}
PaperProps={{
sx: {
background: `${isDarkMode ? '#1e2124' : 'white'}`,
color: `${isDarkMode ? 'white' : 'black'}`,
background: `${darkMode ? '#1e2124' : 'white'}`,
color: `${darkMode ? 'white' : 'black'}`,
padding: '10px',
height: 500,
width: width - 10,