Skip to content

Commit

Permalink
Fix Safari spinner rendering (#29801)
Browse files Browse the repository at this point in the history
Fixes: go-gitea/gitea#29041
Fixes: go-gitea/gitea#29713

Any of the `width: *-content` properties seem to workaround this Webkit
bug, this one seemed most suitable.

(cherry picked from commit 35def319fdb8c73aa5e2c52fad5230d287e2bd93)
  • Loading branch information
silverwind authored and earl-warren committed Mar 20, 2024
1 parent f4d75ed commit 9df7f56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web_src/css/modules/animations.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9df7f56

Please sign in to comment.