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(css): Fix missing % in calculation #4157

Merged
merged 1 commit into from
Apr 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ui/less/ad_controls.less
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@

/* This math is determining how far the button is from the right edge.
* Ad panel's parent is centered and @bottom-controls-width wide, so
* 100 - @bottom-controls-width = margins from both sides of the container.
* 100% - @bottom-controls-width = margins from both sides of the container.
* That divided by 2 is margin on one side, so we take that, and move the
* button from its normal position to the right by that percentage.
*/
right: calc((100 - @bottom-controls-width) / 2 * -1);
right: calc((100% - @bottom-controls-width) / 2 * -1);
display: flex;
flex-direction: row;
margin: 0;
Expand Down