🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(auth): migrate resultStyles to scoped CSS module (fix canary Test CI Lint) (#21395)
Arvin Xu7f12dfbf2ec5
diff --git a/src/features/Auth/OAuthCallback/Success.tsx b/src/features/Auth/OAuthCallback/Success.tsxindex 40bafcbcb39..a389d9a3ff7 100644--- a/src/features/Auth/OAuthCallback/Success.tsx+++ b/src/features/Auth/OAuthCallback/Success.tsx@@ -5,7 +5,7 @@ import React, { memo, useEffect, useState } from 'react';import { useTranslation } from 'react-i18next';import { useSearchParams } from 'react-router';-import { resultStyles } from '../resultStyles';+import resultStyles from '../resultStyles.module.css';const SuccessPage = memo(() => {const { t } = useTranslation('oauth');diff --git a/src/features/Auth/OAuthDevice/DeviceSuccess.tsx b/src/features/Auth/OAuthDevice/DeviceSuccess.tsxindex e2800e9bcaf..980adb4b496 100644--- a/src/features/Auth/OAuthDevice/DeviceSuccess.tsx+++ b/src/features/Auth/OAuthDevice/DeviceSuccess.tsx@@ -4,7 +4,7 @@ import { FluentEmoji, Result, Text } from '@lobehub/ui';import React, { memo } from 'react';import { useTranslation } from 'react-i18next';-import { resultStyles } from '../resultStyles';+import resultStyles from '../resultStyles.module.css';const DeviceSuccess = memo(() => {const { t } = useTranslation('oauth');diff --git a/src/features/Auth/resultStyles.module.css b/src/features/Auth/resultStyles.module.cssnew file mode 100644index 00000000000..7374c80b11b--- /dev/null+++ b/src/features/Auth/resultStyles.module.css@@ -0,0 +1,5 @@+/* Result caps the subtitle at 36ch, which makes it narrower than the title.+ Keep the subtitle paragraph at full width inside the Result root. */+.fullWidthSubTitle p {+ max-width: 100%;+}diff --git a/src/features/Auth/resultStyles.ts b/src/features/Auth/resultStyles.tsdeleted file mode 100644index 80110edb43f..00000000000--- a/src/features/Auth/resultStyles.ts+++ /dev/null@@ -1,10 +0,0 @@-import { createStaticStyles } from '@lobehub/ui';--export const resultStyles = createStaticStyles(({ css }) => ({- // Result caps the subtitle at 36ch, which makes it narrower than the 32px title.- fullWidthSubTitle: css`- > p {- max-width: 100%;- }- `,-}));