8000 Play icon in pyrepl vertically centered w.r.to the last line by princiya · Pull Request #62 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

Play icon in pyrepl vertically centered w.r.to the last line #62

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

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

princiya
Copy link
Contributor

Screenshot 2022-04-29 at 20 29 36

@princiya princiya added tag: styling Related to the styling of pyscript components status: ready PR that is ready for review labels Apr 29, 2022
@princiya princiya requested a review from fpliger April 29, 2022 18:31
const buttonClasses = ["mr-2", "block"];
addClasses(this.btnRun, buttonClasses);
eDiv.appendChild(this.btnRun);
addClasses(this.btnRun, ["absolute", "right-0", "bottom-2", "opacity-0", "group-hover:opacity-100"]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if the play button needs to be vertically centered w.r.to the editor box' bottom border line, then just update bottom-2 to -bottom-3 👇

Screenshot 2022-04-29 at 20 40 49

@fpliger fpliger merged commit 2df4400 into main Apr 29, 2022
@fpliger fpliger deleted the centre-repl-play-icon branch April 29, 2022 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready PR that is ready for review tag: styling Related to the styling of pyscript components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0