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

Feature Request: Show datetime on hover when using timeago #131

Closed
mschoettle opened this issue Apr 24, 2024 · 2 comments · Fixed by #152
Closed

Feature Request: Show datetime on hover when using timeago #131

mschoettle opened this issue Apr 24, 2024 · 2 comments · Fixed by #152

Comments

@mschoettle
Copy link
Contributor

When using the timeago visualization it would be nice to be able to see the actual date when hovering over the "x ago" text.

I believe adding the title attribute to the <span> element should be sufficient. Although it raises the question of which format to use in there.

@mschoettle mschoettle changed the title Feature Request: Show timestamp on hover when using timeago Feature Request: Show datetime on hover when using timeago Apr 24, 2024
@timvink
Copy link
Owner

timvink commented Oct 22, 2024

Yes this is an easy change, we can add a title attribute here:

'<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-%s">%s</span>'

The CSS styling for a popup is on the user of course.

Would you like to make a contribution?

mschoettle added a commit to mschoettle/mkdocs-git-revision-date-localized-plugin that referenced this issue Oct 30, 2024
@mschoettle
Copy link
Contributor Author

Thanks for pointing at the right place, @timvink.

Would you like to make a contribution?

Yes! Created #152 with a simple solution reusing the datetime format.

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 a pull request may close this issue.

2 participants