Skip to content

Commit

Permalink
fix(Profile): remove absolute style and change extendTargetWidth valu…
Browse files Browse the repository at this point in the history
…e to false
  • Loading branch information
NarekArshakyan committed Feb 23, 2024
1 parent 01811df commit f12ec28
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/lib/atoms/Option/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,7 @@ $selector: '.option-container';

.option-title {
&-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}

&-end {
Expand Down
1 change: 0 additions & 1 deletion src/lib/molecules/Menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ const Menu = forwardRef(
border="bottom"
className={classnames({ hovered: hoveredHeader })}
screenType={screenType}
titlePosition="center"
{...headerProps}
title={header.title}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/molecules/Profile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function Profile(props) {
contentRef={outsideClickRef}
align="end"
isOpen={menuVisibleState}
extendTargetWidth={false}
extendTargetWidth={!customAvatar}
padding={padding}
className={classnames('profile-module-popover', { [popoverClassName]: !!popoverClassName })}
{...dynamicPropsContainerParent}
Expand Down

0 comments on commit f12ec28

Please sign in to comment.