mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 01:10:02 +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 = {
|
||||
name: string
|
||||
class?: string
|
||||
|
@ -9,7 +11,7 @@ const { name, class: className, ...rest }: Props = Astro.props
|
|||
|
||||
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
|
||||
<video
|
||||
class:list={['w-fit', className]}
|
||||
class:list={cn('w-full', className)}
|
||||
preload="none"
|
||||
poster={`/media/${name}/poster.webp`}
|
||||
{...rest}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue