Skip to content

Commit 9de8b44

Browse files
committed
fix(website): keep Search file preview borders crisp
1 parent 620c88e commit 9de8b44

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

apps/sim/app/(landing)/components/navbar/components/nav-menu-chip/components/nav-menu-preview/components/menu-preview-frame/menu-preview-frame.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ export function MenuPreviewFrame({
4141
>
4242
{children}
4343
</div>
44-
<EdgeFade ground={isHero ? 'canvas' : 'surface'} depth='preview' />
44+
<EdgeFade
45+
ground={isHero ? 'canvas' : 'surface'}
46+
edges={layout === 'feature' ? ['bottom'] : undefined}
47+
depth='preview'
48+
/>
4549
</div>
4650
)
4751
}

apps/sim/app/(landing)/components/solutions-page/components/solutions-product-page/components/product-feature/product-feature.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export function ProductFeature({ feature }: ProductFeatureProps) {
2121
className='pointer-events-none relative isolate h-[460px] select-none overflow-hidden [container-type:inline-size] max-sm:h-[380px] max-xl:h-[420px]'
2222
>
2323
<div className='relative z-0 size-full'>{feature.visual}</div>
24-
<EdgeFade ground='canvas' edges={['right']} depth='preview' />
24+
{feature.fadePreviewRight !== false && (
25+
<EdgeFade ground='canvas' edges={['right']} depth='preview' />
26+
)}
2527
<EdgeFade ground='canvas' edges={['bottom']} depth='stage' />
2628
</div>
2729
<div className='px-8 pt-5 pb-9 max-sm:px-0 max-sm:pt-2 max-sm:pb-7'>

apps/sim/app/(landing)/components/solutions-page/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ export interface SolutionsProductFeatureConfig {
146146
visualSize?: 'default' | 'compact'
147147
/** Allow pointer hover on decorative previews with non-focusable tooltip triggers. */
148148
allowPreviewHover?: boolean
149+
/** Disable when a contained preview needs a crisp right border. */
150+
fadePreviewRight?: boolean
149151
cta?: SolutionsPillCta
150152
}
151153

apps/sim/app/(landing)/search/search.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const SEARCH_CONFIG: SolutionsProductPageConfig = {
3232
},
3333
{
3434
id: 'find-content',
35+
fadePreviewRight: false,
3536
allowPreviewHover: true,
3637
title: 'Find the file. Pick up the thread.',
3738
label: 'Search company content',

0 commit comments

Comments
 (0)