Skip to content

A self-hosted media server and file management system

fix: translate z on spinner breaks animation

aminnausin156127ee8118
diff --git a/resources/js/components/cedar-ui/icons/SvgSpinners90RingWithBg.vue b/resources/js/components/cedar-ui/icons/SvgSpinners90RingWithBg.vue
index 7d5def03..4abf0ead 100644
--- a/resources/js/components/cedar-ui/icons/SvgSpinners90RingWithBg.vue
+++ b/resources/js/components/cedar-ui/icons/SvgSpinners90RingWithBg.vue
@@ -1,16 +1,21 @@
<template>
- <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
- <path fill="currentColor" d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" opacity="0.25" />
- <path
- fill="currentColor"
- d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"
- class="spinner-origin animate-spin"
- />
- </svg>
+ <div class="gpu-layer">
+ <svg xmlns="http://www.w3.org/2000/svg" class="size-full animate-spin" viewBox="0 0 24 24">
+ <path fill="currentColor" d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" opacity="0.25" />
+ <path
+ fill="currentColor"
+ d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"
+ class="spinner-origin"
+ />
+ </svg>
+ </div>
</template>
<style scoped>
.spinner-origin {
transform-origin: 12px 12px;
+}
+
+.gpu-layer {
transform: translateZ(0);
}
</style>