Skip to content
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

Merged
merged 2 commits into from
Dec 28, 2023
Merged

fix(#1193):fixed icon displacement on window scaling #1202

merged 2 commits into from
Dec 28, 2023

Conversation

Vayras
Copy link
Contributor

@Vayras Vayras commented Dec 27, 2023

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

@ecurrencyhodler
Copy link
Contributor

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; */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete instead of commenting

Comment on lines 37 to 39
/* position: absolute; */
/* min-height: 48px;
min-width: 48px; */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete instead of commenting

@Vayras
Copy link
Contributor Author

Vayras commented Dec 28, 2023

@kevkevinpal made the changes

@kevkevinpal kevkevinpal merged commit 564c05c into stakwork:master Dec 28, 2023
5 checks passed
@ecurrencyhodler
Copy link
Contributor

Tested on staging. looks good. paying it out now.

@ecurrencyhodler
Copy link
Contributor

jk kev already did!

elraphty pushed a commit that referenced this pull request Jan 26, 2024
* fix(#1193):fixed icon displacement on window scaling

* removed commented code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scale icon on edit and delete button shift off button when zooming out of browser window
3 participants