mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix: add aspect-ratio to demos (#136)
This commit is contained in:
@@ -111,9 +111,9 @@ export default function App(): JSX.Element {
|
||||
const skinClassName = useMemo(() => {
|
||||
switch (skinKey) {
|
||||
case 'frosted':
|
||||
return 'rounded-4xl shadow shadow-lg shadow-black/15';
|
||||
return 'aspect-video rounded-4xl shadow shadow-lg shadow-black/15';
|
||||
case 'minimal':
|
||||
return 'rounded-2xl shadow shadow-lg shadow-black/15';
|
||||
return 'aspect-video rounded-2xl shadow shadow-lg shadow-black/15';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
@@ -185,7 +185,7 @@ export default function App(): JSX.Element {
|
||||
<MediaProvider key={key}>
|
||||
<Skin className={skinClassName}>
|
||||
{/* @ts-expect-error -- types are incorrect */}
|
||||
<Video src={mediaSource} poster={poster} />
|
||||
<Video src={mediaSource} poster={poster} playsinline />
|
||||
</Skin>
|
||||
</MediaProvider>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user