fix(docs): restore media centering and full-width intro image (#4570)

* fix(docs): restore media centering and full-width intro image

* fix(docs): drop overflow-hidden from intro media wrappers so focus ring is not clipped

* fix(docs): use inset focus ring on lightbox media so parent overflow-hidden cannot clip it

* fix(docs): drop focus ring on lightbox media to match original UI
This commit is contained in:
Waleed
2026-05-12 14:56:19 -07:00
committed by GitHub
parent d1eb79ecd3
commit f6b246ba44
3 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ export function Image({
<NextImage
className={cn(
'overflow-hidden rounded-xl border border-border object-cover',
enableLightbox && 'transition-opacity group-hover:opacity-95',
enableLightbox && 'cursor-pointer transition-opacity group-hover:opacity-95',
className
)}
alt={alt}
@@ -41,7 +41,7 @@ export function Image({
type='button'
onClick={openLightbox}
aria-label={`Open ${alt} in media viewer`}
className='group block w-full cursor-pointer rounded-xl p-0 text-left'
className='group contents'
>
{image}
</button>
+5 -2
View File
@@ -45,7 +45,10 @@ export function Video({
playsInline={playsInline}
width={width}
height={height}
className={cn(className, enableLightbox && 'transition-opacity group-hover:opacity-[0.97]')}
className={cn(
className,
enableLightbox && 'cursor-pointer transition-opacity group-hover:opacity-[0.97]'
)}
src={getAssetUrl(src)}
/>
)
@@ -57,7 +60,7 @@ export function Video({
type='button'
onClick={openLightbox}
aria-label={`Open ${src} in media viewer`}
className='group block w-full cursor-pointer rounded-xl p-0 text-left'
className='group contents'
>
{video}
</button>
@@ -10,13 +10,13 @@ import { FAQ } from '@/components/ui/faq'
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.
<div className="flex justify-center">
<div className="mx-auto w-full overflow-hidden rounded-lg my-6">
<Image
src="/static/introduction.png"
alt="Sim visual workflow canvas"
width={700}
height={450}
className="my-6"
className="w-full"
/>
</div>