[openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)
Marwin Hochfelsner
notifications at github.com
Tue Jan 14 13:10:29 UTC 2025
@hlfan commented on this pull request.
> +function getThemeFromColorScheme(colorScheme) {
+ if (colorScheme === "auto") {
+ return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
+ }
+ return colorScheme; // Return "light" or "dark" directly if specified
+}
I'm sorry, but I don't see where a re-draw would be triggered.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5402#discussion_r1914785564
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5402/review/2549658083 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250114/8e151bce/attachment.htm>
More information about the rails-dev
mailing list