Skip to content

Commit 3daf9ac

Browse files
VahidAlizadehclaude
andcommitted
fix(website): consistent image size in feature tabs
Set fixed 600px height on screenshot panel with centered object-contain so landscape and portrait images both fill the space consistently. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c5232d3 commit 3daf9ac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

website/src/components/FeatureScroller.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,20 @@ export default function FeatureScroller() {
168168
{/* Right panel — screenshot (65%) */}
169169
<div className="w-[65%]">
170170
<div
171-
className="overflow-hidden rounded-xl"
171+
className="flex items-center justify-center overflow-hidden rounded-xl"
172172
style={{
173173
backgroundColor: '#12121c',
174174
border: '1px solid rgba(255,255,255,0.06)',
175+
height: '600px',
175176
}}
176177
>
177178
<AnimatePresence mode="wait">
178179
<motion.img
179180
key={activeFeature.id}
180181
src={`${baseUrl}screenshots/${activeFeature.screenshot}`}
181182
alt={`${activeFeature.name} screenshot`}
182-
className="w-full object-contain"
183+
className="object-contain"
184+
style={{ maxWidth: '100%', maxHeight: '100%' }}
183185
initial={reducedMotion ? false : { opacity: 0, scale: 0.97 }}
184186
animate={{ opacity: 1, scale: 1 }}
185187
exit={reducedMotion ? {} : { opacity: 0, scale: 0.97 }}

0 commit comments

Comments
 (0)