fix(app): space invite header above sign-in options

This commit is contained in:
Hampus committed 2026-10-24 20:55:19 +02:00
1 parent f3e553042b
commit 761fcedc95
2 files changed
+6 -5

No files matched your search

@@ -32,7 +32,7 @@ import type {ReactNode} from 'react';
import {useCallback, useMemo} from 'react';
export type ResourceAuthMode = 'login' | 'register';
export interface ResourceAuthState<T> {
interface ResourceAuthState<T> {
loading: boolean;
error: boolean;
resource: T | null;
@@ -129,7 +129,7 @@ const ResourceAuthContent = observer(function ResourceAuthContent<T>({
desktopHandoff={isHandoffRequest(params)}
excludeCurrentUser={false}
extraTopContent={
<>
<div className={sharedStyles.loginHeader} data-flx={`${prefix}.login-header`}>
<DesktopDeepLinkPrompt
code={id}
kind={config.kind}
@@ -137,7 +137,7 @@ const ResourceAuthContent = observer(function ResourceAuthContent<T>({
data-flx={`${prefix}.desktop-deep-link-prompt`}
/>
{config.renderHeader(state.resource, 'login', false)}
</>
</div>
}
forgotPasswordAction={null}
showTitle={false}
@@ -4,6 +4,7 @@ import {Routes} from '@app/app/Routes';
import type {RuntimeConfigSnapshot} from '@app/features/app/state/InstanceSnapshotStore';
import {AuthLoginLayout} from '@app/features/auth/flow/AuthLoginLayout';
import {AuthLoginStepCarousel} from '@app/features/auth/flow/AuthLoginStepCarousel';
import sharedStyles from '@app/features/auth/flow/AuthPageStyles.module.css';
import {AuthRouterLink} from '@app/features/auth/flow/AuthRouterLink';
import {AuthRuntimeTargetGate} from '@app/features/auth/flow/AuthRuntimeTargetGate';
import {isHandoffRequest} from '@app/features/auth/flow/auth_login_core/useDesktopHandoffFlow';
@@ -48,7 +49,7 @@ const InviteLoginPage = observer(function InviteLoginPage({code, invite}: Invite
desktopHandoff={isHandoff}
excludeCurrentUser={false}
extraTopContent={
<>
<div className={sharedStyles.loginHeader} data-flx="invite.invite-login-page.login-header">
<DesktopDeepLinkPrompt
code={code}
kind="invite"
@@ -56,7 +57,7 @@ const InviteLoginPage = observer(function InviteLoginPage({code, invite}: Invite
data-flx="invite.invite-login-page.desktop-deep-link-prompt"
/>
<InviteHeader invite={invite} data-flx="invite.invite-login-page.invite-header" />
</>
</div>
}
forgotPasswordAction={null}
showTitle={false}