]> source.dussan.org Git - gitea.git/commitdiff
Fix Safari spinner rendering (#29801) (#29802)
authorGiteabot <teabot@gitea.io>
Thu, 14 Mar 2024 22:08:59 +0000 (06:08 +0800)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2024 22:08:59 +0000 (22:08 +0000)
Backport #29801 by @silverwind

Fixes: https://github.com/go-gitea/gitea/issues/29041
Fixes: https://github.com/go-gitea/gitea/pull/29713
Any of the `width: *-content` properties seem to workaround this Webkit
bug, this one seemed most suitable.

Before:
<img width="184" alt="Screenshot 2024-03-14 at 22 29 58"
src="https://github.com/go-gitea/gitea/assets/115237/6effc5f0-bc64-4752-be74-9c43b3974407">

After:
<img width="177" alt="Screenshot 2024-03-14 at 22 30 30"
src="https://github.com/go-gitea/gitea/assets/115237/5de244d7-6b46-428e-957c-4b10f53e2441">

Co-authored-by: silverwind <me@silverwind.io>
web_src/css/modules/animations.css

index 87eb6a75cf071f69d806602db95bf892185bf7e2..d5ddc772f6cc5d7194e57faf7a10fbefe64b3353 100644 (file)
@@ -20,6 +20,7 @@
   left: 50%;
   top: 50%;
   height: min(4em, 66.6%);
+  width: fit-content; /* compat: safari - https://bugs.webkit.org/show_bug.cgi?id=267625 */
   aspect-ratio: 1;
   transform: translate(-50%, -50%);
   animation: isloadingspin 1000ms infinite linear;