From df23ec0f8b490bee49dc0e7944b529f3ede35301 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Fri, 15 Mar 2024 06:08:59 +0800 Subject: [PATCH] Fix Safari spinner rendering (#29801) (#29802) 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: Screenshot 2024-03-14 at 22 29 58 After: Screenshot 2024-03-14 at 22 30 30 Co-authored-by: silverwind --- web_src/css/modules/animations.css | 1 + 1 file changed, 1 insertion(+) diff --git a/web_src/css/modules/animations.css b/web_src/css/modules/animations.css index 87eb6a75cf..d5ddc772f6 100644 --- a/web_src/css/modules/animations.css +++ b/web_src/css/modules/animations.css @@ -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; -- 2.39.5