Rework and fix stopwatch (#30732) #30787
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport #30732 by @silverwind
Fixes #30721 and overhauls the stopwatch. Time is now shown inside the "dot" icon and on both mobile and desktop. All rendering is now done by
<relative-time>
, thepretty-ms
dependency is dropped.Desktop:

Mobile:

Note for tippy:
Previously, tippy instances defaulted to "menu" theme, but that theme is really only meant for
.ui.menu
, so it was not optimal for the stopwatch popover.This introduces a unopinionated
default
theme that has no padding and should be suitable for all content. I reviewed all existing uses and explicitely set the desiredtheme
on all of them.