Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: modify loading style

QiShaoXuan33400f1c5a8b
diff --git a/packages/app/src/components/loading/styled.ts b/packages/app/src/components/loading/styled.ts
index b98a8bfaa5..31906e1b7b 100644
--- a/packages/app/src/components/loading/styled.ts
+++ b/packages/app/src/components/loading/styled.ts
@@ -1,19 +1,22 @@
import { styled } from '@/styles';
// Inspired by https://codepen.io/graphilla/pen/rNvBMYY
-export const StyledLoadingWrapper = styled.div<{ size?: number }>(
- ({ size = 40 }) => {
- return {
- width: size * 4,
- height: size * 4,
- position: 'relative',
- };
- }
-);
+export const StyledLoadingWrapper = styled('div', {
+ shouldForwardProp: prop => {
+ return !['size'].includes(prop);
+ },
+})<{ size?: number }>(({ size = 40 }) => {
+ return {
+ width: size * 4,
+ height: size * 4,
+ position: 'relative',
+ };
+});
export const StyledLoading = styled.div`
position: absolute;
left: 25%;
- top: 25%;
+ top: 50%;
+ transform: rotateX(55deg) rotateZ(-45deg);
@keyframes slide {
0% {
transform: translate(var(--sx), var(--sy));