Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(web): fit auth pages on small screens (#45600)
yyh31abad4f0df7
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.jsonindex 48220077525..00ec846cba7 100644--- a/oxlint-suppressions.json+++ b/oxlint-suppressions.json@@ -100,11 +100,6 @@"count": 1}},- "web/app/(shareLayout)/webapp-signin/check-code/page.tsx": {- "better-tailwindcss/enforce-logical-properties": {- "count": 1- }- },"web/app/(shareLayout)/webapp-signin/normalForm.tsx": {"jsx-a11y/click-events-have-key-events": {"count": 2diff --git a/web/app/(auth)/init/InitPasswordPopup.tsx b/web/app/(auth)/init/InitPasswordPopup.tsxindex f93e9aba0ab..2dc7739324e 100644--- a/web/app/(auth)/init/InitPasswordPopup.tsx+++ b/web/app/(auth)/init/InitPasswordPopup.tsx@@ -51,7 +51,7 @@ const InitPasswordPopup = () => {) : (<div>{!validated && (- <div className="mx-12 block min-w-28">+ <div className="block min-w-28 sm:mx-12"><div className="mb-4"><label htmlFor="password" className="block text-sm font-medium text-text-secondary">{pageTitle}diff --git a/web/app/(auth)/signin/split.tsx b/web/app/(auth)/signin/split.tsxindex ef589ee0029..467bc2ce464 100644--- a/web/app/(auth)/signin/split.tsx+++ b/web/app/(auth)/signin/split.tsx@@ -11,7 +11,7 @@ const Split: FC<Props> = ({ className }) => {return (<divclassName={cn(- 'h-px w-100 bg-[linear-gradient(90deg,rgba(255,255,255,0.01)_0%,rgba(16,24,40,0.08)_50.5%,rgba(255,255,255,0.01)_100%)]',+ 'h-px w-full bg-[linear-gradient(90deg,rgba(255,255,255,0.01)_0%,rgba(16,24,40,0.08)_50.5%,rgba(255,255,255,0.01)_100%)]',className,)}></div>diff --git a/web/app/(shareLayout)/layout.tsx b/web/app/(shareLayout)/layout.tsxindex 73866058d6f..8c87a632438 100644--- a/web/app/(shareLayout)/layout.tsx+++ b/web/app/(shareLayout)/layout.tsx@@ -4,7 +4,7 @@ import Splash from './components/splash'const Layout: FC<PropsWithChildren> = ({ children }) => {return (- <div className="h-dvh min-w-75 pb-[env(safe-area-inset-bottom)]">+ <div data-viewport-frame="" className="h-dvh min-w-75 pb-[env(safe-area-inset-bottom)]"><WebAppStoreProvider><Splash>{children}</Splash></WebAppStoreProvider>diff --git a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx b/web/app/(shareLayout)/webapp-signin/check-code/page.tsxindex 5553addebab..dbb25cd43ce 100644--- a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx+++ b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx@@ -107,7 +107,7 @@ export default function CheckCode() {}return (- <div className="flex w-100 flex-col gap-3">+ <div className="flex w-full max-w-100 flex-col gap-3"><div className="inline-flex size-14 items-center justify-center rounded-2xl border border-components-panel-border-subtle bg-background-default-dodge shadow-lg"><spanaria-hidden@@ -161,7 +161,7 @@ export default function CheckCode() {<span className="inline-block rounded-full p-1"><span aria-hidden className="i-ri-arrow-left-line block size-3" /></span>- <span className="ml-2 system-xs-regular">{t(($) => $.back, { ns: 'login' })}</span>+ <span className="ms-2 system-xs-regular">{t(($) => $.back, { ns: 'login' })}</span></button></div>)diff --git a/web/app/components/auth-shell/header.tsx b/web/app/components/auth-shell/header.tsxindex c9876a4299a..48542d1c9a8 100644--- a/web/app/components/auth-shell/header.tsx+++ b/web/app/components/auth-shell/header.tsx@@ -21,7 +21,7 @@ const Header = () => {const { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions())return (- <header className="flex w-full items-center justify-between p-6">+ <header className="flex w-full items-center justify-between gap-3 p-4 sm:p-6">{systemFeatures.branding.enabled && systemFeatures.branding.login_page_logo ? (<imgsrc={systemFeatures.branding.login_page_logo}@@ -31,7 +31,7 @@ const Header = () => {) : (<DifyLogo alt="Dify" size="large" />)}- <div className="flex items-center gap-1">+ <div className="flex min-w-0 items-center gap-1"><LocaleMenuvalue={locale}items={languages.filter((item) => item.supported)}@@ -40,8 +40,10 @@ const Header = () => {router.refresh()}}/>- <Separator decorative orientation="vertical" className="mx-0 ms-2 h-4" />- <ThemeSelector />+ <div className="flex shrink-0 items-center gap-1">+ <Separator decorative orientation="vertical" className="mx-0 ms-2 h-4" />+ <ThemeSelector />+ </div></div></header>)diff --git a/web/app/components/auth-shell/index.tsx b/web/app/components/auth-shell/index.tsxindex 3e36b6e1a84..395e5adbdde 100644--- a/web/app/components/auth-shell/index.tsx+++ b/web/app/components/auth-shell/index.tsx@@ -17,20 +17,22 @@ export function AuthShell({ children, header = true, wide = false }: AuthShellPrconst { data: systemFeatures } = useSuspenseQuery(systemFeaturesQueryOptions())return (- <div className="flex min-h-screen w-full justify-center bg-background-default-burn p-6">- <div className="flex w-full min-w-0 flex-col items-center rounded-2xl border border-effects-highlight bg-background-default-subtle">+ <div className="flex min-h-dvh w-full justify-center bg-background-default-subtle px-[max(env(safe-area-inset-left),env(safe-area-inset-right))] pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] in-data-viewport-frame:min-h-full in-data-viewport-frame:pb-0 sm:bg-background-default-burn sm:px-[max(--spacing(6),env(safe-area-inset-left),env(safe-area-inset-right))] sm:pt-[max(--spacing(6),env(safe-area-inset-top))] sm:pb-[max(--spacing(6),env(safe-area-inset-bottom))] in-data-viewport-frame:sm:pb-6">+ <div className="flex w-full min-w-0 flex-col items-center bg-background-default-subtle sm:rounded-2xl sm:border sm:border-effects-highlight">{header && <Header />}- <main className="flex w-full grow flex-col items-center justify-center px-6 md:px-27">+ <main className="flex w-full grow flex-col items-center justify-center px-4 sm:px-6 md:px-27"><divclassName={- wide ? 'flex justify-center md:w-110 lg:w-150' : 'flex w-full flex-col md:w-100'+ wide+ ? 'flex w-full justify-center md:w-110 lg:w-150'+ : 'flex w-full flex-col md:w-100'}>{children}</div></main>{!systemFeatures.branding.enabled && (- <footer className="px-8 py-6 system-xs-regular text-text-tertiary">+ <footer className="px-4 py-6 system-xs-regular text-text-tertiary sm:px-8">© {copyrightYear} LangGenius, Inc. All rights reserved.</footer>)}diff --git a/web/app/components/auth-shell/locale-menu.tsx b/web/app/components/auth-shell/locale-menu.tsxindex c566e51cf71..d9fc4ec0119 100644--- a/web/app/components/auth-shell/locale-menu.tsx+++ b/web/app/components/auth-shell/locale-menu.tsx@@ -26,23 +26,19 @@ export default function LocaleMenu<T extends string>({const selectedItem = items.find((item) => item.value === value)return (- <div className="w-56 text-end">+ <div className="flex min-w-0"><Menu>- <div className="relative inline-block text-start">- <div>- <MenuTrigger- render={- <button- type="button"- className="inline-flex w-full items-center rounded-lg border border-components-button-secondary-border px-2.5 py-1.5 text-[13px] font-medium text-text-primary hover:bg-state-base-hover"- />- }- >- <span className="me-1 i-heroicons-globe-alt size-5" aria-hidden="true" />- {selectedItem?.name}- </MenuTrigger>- </div>- </div>+ <MenuTrigger+ render={+ <button+ type="button"+ className="inline-flex max-w-full min-w-0 items-center rounded-lg border border-components-button-secondary-border px-2.5 py-1.5 text-[13px] font-medium text-text-primary hover:bg-state-base-hover"+ />+ }+ >+ <span className="me-1 i-heroicons-globe-alt size-5 shrink-0" aria-hidden="true" />+ <span className="truncate">{selectedItem?.name}</span>+ </MenuTrigger><MenuContent sideOffset={8} className="w-50"><MenuRadioGroup<T> value={value} onValueChange={(nextValue) => onChange?.(nextValue)}>{items.map((item) => (