Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(create): use light spinner on dark upload mask (#16236)

YuTengjingd59e985b6417
diff --git a/src/routes/(main)/(create)/features/GenerationInput/UploadCard.tsx b/src/routes/(main)/(create)/features/GenerationInput/UploadCard.tsx
index c61bf857fbb..154348a09db 100644
--- a/src/routes/(main)/(create)/features/GenerationInput/UploadCard.tsx
+++ b/src/routes/(main)/(create)/features/GenerationInput/UploadCard.tsx
@@ -118,6 +118,14 @@ export const uploadCardStyles = createStaticStyles(({ css }) => ({
border-radius: 3px;
background: ${cssVar.colorBgMask};
+
+ /* antd resets the Spin's own color to colorText (near-black in the light
+ theme) and the percent ring's stroke is \`currentcolor\`, so it smears into
+ the dark mask. The mask is a dark scrim in both themes — override the Spin
+ color to white for contrast. */
+ .ant-spin {
+ color: ${cssVar.colorWhite};
+ }
`,
}));