Improve shadows in search box

This commit is contained in:
Corey 2024-05-13 01:20:28 -04:00
parent 9e598dc280
commit 5d3d823c34
Signed by: coco
GPG Key ID: 051138DA6AEE3E60
1 changed files with 548 additions and 551 deletions

View File

@ -131,24 +131,20 @@ export default function SearchServers({
};
return (
<Container
<Box
ref={containerRef}
className="overflow-hidden"
sx={{
transition: 'all 0.3s ease',
maxHeight: showSearchServer ? contentHeight : 0,
borderBottom: showSearchServer
? (theme) =>
theme.palette.mode === 'dark'
? '1px solid rgba(255, 255, 255, .12)'
: '1px solid rgba(0, 0, 0, .12)'
: 'none',
backgroundColor: (theme) =>
theme.palette.mode === 'dark'
? 'rgba(255, 255, 255, .06)'
: 'rgba(0, 0, 0, .06)',
boxShadow: 'inset 0em 3em 5em -5em black,inset 0em -3em 5em -6em black',
}}
>
<Container>
<Grid container spacing={2} className="py-2">
{/* Name */}
<Grid item xs={12}>
@ -703,5 +699,6 @@ export default function SearchServers({
</Grid>
</Grid>
</Container>
</Box>
);
}