🐛 fix(Hero): fix deformed scroll button shape
This commit is contained in:
@@ -44,22 +44,8 @@ const Hero = (props: { scrollTarget?: React.ForwardedRef<HTMLSelectElement> }) =
|
|||||||
},
|
},
|
||||||
})}>
|
})}>
|
||||||
<Box>
|
<Box>
|
||||||
{/*
|
<Typography variant="h3">Robotics Engineer</Typography>
|
||||||
<h2>Michele Tartari</h2>
|
<Typography color="text.secondary" sx={{ margin: '0.5em 0 0 0', top: 0 }}>
|
||||||
<h3>Robotics Engineer</h3>
|
|
||||||
*/}
|
|
||||||
<Typography
|
|
||||||
// sx={{ fontSize: '2.5em',margin: 0 }}
|
|
||||||
variant="h3">
|
|
||||||
Robotics Engineer
|
|
||||||
</Typography>
|
|
||||||
<Typography
|
|
||||||
color="text.secondary"
|
|
||||||
sx={{
|
|
||||||
// margin: { xs: '0.5em 1em', md: '0.5em 0 0 0' },
|
|
||||||
margin: '0.5em 0 0 0',
|
|
||||||
top: 0,
|
|
||||||
}}>
|
|
||||||
See some of my works below. Send a message to get in touch.
|
See some of my works below. Send a message to get in touch.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Stack direction="row" gap={2} mt={2} justifyContent={{ xs: 'center', sm: 'end' }}>
|
<Stack direction="row" gap={2} mt={2} justifyContent={{ xs: 'center', sm: 'end' }}>
|
||||||
@@ -83,8 +69,8 @@ const Hero = (props: { scrollTarget?: React.ForwardedRef<HTMLSelectElement> }) =
|
|||||||
{props.scrollTarget && (
|
{props.scrollTarget && (
|
||||||
<IconButton
|
<IconButton
|
||||||
size="large"
|
size="large"
|
||||||
onClick={() => (props.scrollTarget as React.RefObject<HTMLSelectElement | null>).current?.scrollIntoView()}
|
onClick={() => (props.scrollTarget as React.RefObject<HTMLElement | null>).current?.scrollIntoView()}
|
||||||
sx={{ display: { xs: 'none', md: 'block' }, position: 'absolute', p: 1, bottom: 3 }}>
|
sx={{ position: 'absolute', p: 1, bottom: 2, left: '50%', transform: 'translate(-50%, 0)' }}>
|
||||||
<ExpandMore fontSize="large" />
|
<ExpandMore fontSize="large" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ const DesktopComponent = React.forwardRef<HTMLSelectElement, Props>((props, ref)
|
|||||||
{props.scrollTarget && (
|
{props.scrollTarget && (
|
||||||
<IconButton
|
<IconButton
|
||||||
size="large"
|
size="large"
|
||||||
onClick={() => (props.scrollTarget as React.MutableRefObject<HTMLSelectElement | null>).current?.scrollIntoView()}
|
onClick={() => (props.scrollTarget as React.RefObject<HTMLSelectElement | null>).current?.scrollIntoView()}
|
||||||
sx={{ position: 'absolute', p: 1, bottom: 2, left: '50%', transform: 'translate(-50%, 0)' }}>
|
sx={{ position: 'absolute', p: 1, bottom: 2, left: '50%', transform: 'translate(-50%, 0)' }}>
|
||||||
<ExpandMore fontSize="large" />
|
<ExpandMore fontSize="large" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user