-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(#1193):fixed icon displacement on window scaling #1202
Conversation
LGTM. Let's get a code review. |
opacity: ${({ disabled }: ButtonContainerProps) => (disabled ? 0.8 : 1)}; | ||
margin-top: ${(p: any) => p?.topMargin}; | ||
background: #ffffff; | ||
border: 1px solid #dde1e5; | ||
border-radius: 30px; | ||
user-select: none; | ||
.ImageContainer { | ||
position: absolute; | ||
/* position: absolute; */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete instead of commenting
/* position: absolute; */ | ||
/* min-height: 48px; | ||
min-width: 48px; */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete instead of commenting
@kevkevinpal made the changes |
Tested on staging. looks good. paying it out now. |
jk kev already did! |
Fixed the displacement of icons with this PR fixes #1193
cause: use of position:absolute in the styles
fix: removing position absolute and using css padding as props to position icons and text correctly
video
Screen.Recording.2023-12-27.at.11.38.10.PM.mov
tested on Chrome and Firefox