Skip to content

Commit 5d9a02b

Browse files
committed
fix(docs): restore media centering and full-width intro image
1 parent 05892f7 commit 5d9a02b

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

apps/docs/components/ui/image.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export function Image({
2525
<NextImage
2626
className={cn(
2727
'overflow-hidden rounded-xl border border-border object-cover',
28-
enableLightbox && 'transition-opacity group-hover:opacity-95',
28+
enableLightbox &&
29+
'cursor-pointer transition-opacity group-hover:opacity-95 group-focus-visible:ring-2 group-focus-visible:ring-ring group-focus-visible:ring-offset-2',
2930
className
3031
)}
3132
alt={alt}
@@ -41,7 +42,7 @@ export function Image({
4142
type='button'
4243
onClick={openLightbox}
4344
aria-label={`Open ${alt} in media viewer`}
44-
className='group block w-full cursor-pointer rounded-xl p-0 text-left'
45+
className='group contents'
4546
>
4647
{image}
4748
</button>

apps/docs/components/ui/video.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export function Video({
4545
playsInline={playsInline}
4646
width={width}
4747
height={height}
48-
className={cn(className, enableLightbox && 'transition-opacity group-hover:opacity-[0.97]')}
48+
className={cn(
49+
className,
50+
enableLightbox &&
51+
'cursor-pointer transition-opacity group-hover:opacity-[0.97] group-focus-visible:ring-2 group-focus-visible:ring-ring group-focus-visible:ring-offset-2'
52+
)}
4953
src={getAssetUrl(src)}
5054
/>
5155
)
@@ -57,7 +61,7 @@ export function Video({
5761
type='button'
5862
onClick={openLightbox}
5963
aria-label={`Open ${src} in media viewer`}
60-
className='group block w-full cursor-pointer rounded-xl p-0 text-left'
64+
className='group contents'
6165
>
6266
{video}
6367
</button>

apps/docs/content/docs/en/introduction/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import { FAQ } from '@/components/ui/faq'
1010

1111
Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. Create agents visually with the workflow builder, conversationally through Mothership, or programmatically with the API. Connect AI models, databases, APIs, and 1,000+ business tools to build agents that automate real work — from chatbots and compliance agents to data pipelines and ITSM automation.
1212

13-
<div className="flex justify-center">
13+
<div className="mx-auto w-full overflow-hidden rounded-lg my-6">
1414
<Image
1515
src="/static/introduction.png"
1616
alt="Sim visual workflow canvas"
1717
width={700}
1818
height={450}
19-
className="my-6"
19+
className="w-full"
2020
/>
2121
</div>
2222

0 commit comments

Comments
 (0)