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

Improve appearance of click-to-copy confirmation message #579

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

DimK19
Copy link
Contributor

@DimK19 DimK19 commented Sep 16, 2023

Since originally authoring the pull request that implemented this feature (#441), I have noticed a few ways it could be better.

Firstly, there is an issue when the damage calculation message has a certain length, such that the hidden element that appears on click is pushed to a second line, while no text is there. This results in the abnormality shown in the screenshots below:

Picture1

Picture2

The layout is pushed down by a blank line that accommodates the hidden element.

In order to fix it, I have changed the position of the confirmation message to appear above the text. I have set its position to absolute, so it will not interfere with the rest of the layout.

Below are three screenshots of how it looks, including two extreme cases of a very short output message, and a very long individual move output. Please let me know if there are any other cases I should consider for the position of the message.

Picture3

Picture4

Picture5

Secondly, I reduced the duration of the appearance from 2s to 1.5s, because I found it lingered for too long.

Thanks.

src/css/main.css Outdated Show resolved Hide resolved
@thejetou thejetou merged commit 81a9ea7 into smogon:master Oct 6, 2023
2 checks passed
@thejetou
Copy link
Collaborator

thejetou commented Oct 6, 2023

Thanks!

ForwardFeed pushed a commit to ForwardFeed/damage-calc that referenced this pull request Oct 28, 2023
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.

2 participants