Skip to content

Commit

Permalink
feat: make horizontal adjustment only when size is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyhogoboom committed Nov 25, 2024
1 parent 8013a52 commit e4196ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/web-shared/components/Profile/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Profile = ({ theme, handleCloseProfile, size, ...rest }) => {

return (
<>
<Styled.Profile ref={ref}>
<Styled.Profile ref={ref} {...(size ? { right: '-15px;' } : {})}>
<Styled.ProfileCard
borderRadius={{
_: '0%',
Expand Down
2 changes: 1 addition & 1 deletion packages/web-shared/components/Profile/Profile.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Profile = withTheme(styled.div`
position: absolute;
transition: opacity 0.3s ease;
z-index: 9999;
right: -15px;
right: 0;
@media screen and (max-width: ${themeGet('breakpoints.sm')}) {
position: fixed;
Expand Down

0 comments on commit e4196ef

Please sign in to comment.