Skip to content

Commit 278cc0f

Browse files
committed
fix(video): use object-fit contain to prevent horizontal cropping
1 parent 6405bc4 commit 278cc0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/FeaturesSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const CommunityCard = ({ config, index }: { config: CardConfig; index: number })
128128
playsInline
129129
preload="auto"
130130
ref={(el) => { if (el) { el.muted = true; el.play().catch(() => {}); } }}
131-
style={{ objectFit: "cover", width: "100%", height: "100%" }}
131+
style={{ objectFit: "contain", width: "100%", height: "100%" }}
132132
>
133133
<source src={config.media.mp4} type="video/mp4" />
134134
<source src={config.media.webm} type="video/webm" />

src/components/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const HeroSection = () => {
6666
playsInline
6767
preload="auto"
6868
ref={(el) => { if (el) { el.muted = true; el.play().catch(() => {}); } }}
69-
style={{ objectFit: 'cover', width: '100%', height: '100%' }}
69+
style={{ objectFit: 'contain', width: '100%', height: '100%' }}
7070
>
7171
<source src={homepageMp4} type="video/mp4" />
7272
<source src={homepageWebm} type="video/webm" />

0 commit comments

Comments
 (0)