Skip to content

Commit 620c88e

Browse files
committed
fix(website): tighten Sim Search hero spacing
1 parent 5fec617 commit 620c88e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/sim/app/(landing)/search/components/search-chat-loop/search-chat-loop.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function SearchChatLoop({
7171
: 'typing'
7272
}
7373
data-search-result={scenario.kind}
74-
className='relative mx-auto flex h-full w-full max-w-chat flex-col px-6 pt-5 pb-9 max-sm:px-4'
74+
className='relative mx-auto flex h-full w-full max-w-chat flex-col px-6 pt-5 pb-5 max-sm:px-4'
7575
>
7676
<div
7777
className={cn(
@@ -89,7 +89,7 @@ export function SearchChatLoop({
8989
reducedMotion={reducedMotion}
9090
/>
9191
) : !sent ? null : (
92-
<div className='flex h-full flex-col gap-4 overflow-hidden pb-5'>
92+
<div className='flex h-full flex-col justify-end gap-4 overflow-hidden pb-2'>
9393
<div className='max-w-[80%] shrink-0 self-end rounded-2xl bg-[var(--surface-5)] px-3.5 py-2 text-[var(--text-primary)] text-sm leading-5'>
9494
{scenario.prompt}
9595
</div>
@@ -118,7 +118,7 @@ export function SearchChatLoop({
118118
data-search-composer
119119
className={cn(
120120
'absolute inset-x-6 z-10 rounded-2xl border border-[var(--border)] bg-[var(--white)] px-2.5 py-2 transition-[bottom,translate] duration-600 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none max-sm:inset-x-4 dark:bg-[var(--surface-4)]',
121-
sent ? 'bottom-9 translate-y-0' : 'bottom-1/2 translate-y-1/2 shadow-ambient'
121+
sent ? 'bottom-5 translate-y-0' : 'bottom-1/2 translate-y-1/2 shadow-ambient'
122122
)}
123123
>
124124
<div inert>

apps/sim/app/(landing)/search/components/search-preview/search-preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function SearchPreview({ layout = 'menu', mode = 'chat' }: SearchPreviewP
3535
aria-hidden='true'
3636
className={cn(
3737
'pointer-events-none relative isolate overflow-hidden',
38-
layout === 'hero' ? 'h-[420px] max-sm:h-[400px]' : 'size-full min-h-[340px]'
38+
layout === 'hero' ? 'h-[360px] max-sm:h-[400px]' : 'size-full min-h-[340px]'
3939
)}
4040
>
4141
{layout === 'hero' && <SearchBackdrop />}

0 commit comments

Comments
 (0)