Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/__tests__/identity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2655,10 +2655,13 @@ describe('identity copy', () => {
expect(home).toContain('text-decoration: underline');
expect(home).toContain('@media (min-width: 50em) and (max-height: 52em)');
expect(home).toMatch(
/@media \(min-width: 50em\) and \(max-height: 52em\)[\s\S]*?\.hero-copy\s*\{[\s\S]*?gap:\s*0\.35rem/
/@media \(min-width: 50em\) and \(max-height: 52em\)[\s\S]*?\.hero-copy\s*\{[\s\S]*?gap:\s*0\.2rem/
);
expect(home).toMatch(
/@media \(min-width: 50em\) and \(max-height: 52em\)[\s\S]*?\.proof-card\s*\{[\s\S]*?gap:\s*0\.2rem/
/@media \(min-width: 50em\) and \(max-height: 52em\)[\s\S]*?\.proof-card\s*\{[\s\S]*?gap:\s*0\.15rem/
);
expect(home).toMatch(
/@media \(min-width: 50em\) and \(max-height: 52em\)[\s\S]*?\.hero-copy :global\(\.title\)[\s\S]*?font-size:\s*var\(--text-4xl\)/
);
expect(home).toMatch(
/@media \(min-width: 50em\)[\s\S]*?\.hero-copy :global\(\.stack\.gap-4\)[\s\S]*?gap:\s*0\.5rem/
Expand Down
34 changes: 26 additions & 8 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -261,28 +261,46 @@ const schema = {
}
}

/* ~800px-tall desktop: proof continue clears docked composer (#812) */
/* ~800px-tall desktop: 44×44 Read the case clears dock ≥16 (#812 restack) */
@media (min-width: 50em) and (max-height: 52em) {
:global(body.has-prominent-chat) .first-screen {
padding-top: 0.25rem;
gap: 0.5rem;
padding-top: 0;
gap: 0.25rem;
}

.hero {
gap: 0.4rem;
}

.hero-copy {
gap: 0.35rem;
gap: 0.2rem;
}

.hero-actions {
margin-top: 0.15rem;
gap: 0.25rem;
margin-top: 0;
gap: 0.15rem;
}

.hero-copy :global(.stack.gap-4) {
gap: 0.35rem;
gap: 0.2rem;
}

.hero-copy :global(.stack.gap-2) {
gap: 0.15rem;
}

/* Home-only: step H1 down so proof hit-box clears dock (Hero stays 5xl elsewhere) */
.hero-copy :global(.title) {
font-size: var(--text-4xl);
line-height: 1.12;
}

.proof-card {
gap: 0.2rem;
gap: 0.15rem;
}

.proof-outcome {
font-size: var(--text-lg);
}
}

Expand Down
Loading