mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 17:30:01 +02:00
fix: invalid video size
This commit is contained in:
parent
4dab537080
commit
4ef492c5c2
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
|
import { cn } from '~/utils/merge'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
name: string
|
name: string
|
||||||
class?: string
|
class?: string
|
||||||
|
@ -9,7 +11,7 @@ const { name, class: className, ...rest }: Props = Astro.props
|
||||||
|
|
||||||
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
|
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
|
||||||
<video
|
<video
|
||||||
class:list={['w-fit', className]}
|
class:list={cn('w-full', className)}
|
||||||
preload="none"
|
preload="none"
|
||||||
poster={`/media/${name}/poster.webp`}
|
poster={`/media/${name}/poster.webp`}
|
||||||
{...rest}
|
{...rest}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue