Skip to content

Commit

Permalink
fix(packages): components - new video player fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnycrich committed May 22, 2024
1 parent b0fe805 commit dbef3fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/elab/pages/studios/projects/[key].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const useStore = create<ProjectState>()(
return {
...state,
videoOpen: !state.videoOpen,
trailerOpen: false,
};
}),
reset: () =>
Expand Down Expand Up @@ -151,7 +152,7 @@ export default function Project({
};

const Media = () => {
if (item.video)
if (item.video && item.video.file !== 'none')
return (
<motion.div
initial="exit"
Expand Down Expand Up @@ -199,7 +200,7 @@ export default function Project({
<div className="group w-full min-h-[inherit]">
<div
id="video"
className={`${
className={`min-w-[600px] lg:min-w-[300px] ${
videoOpen ? 'relative mb-5 h-full' : ``
} min-h-[inherit]`}
>
Expand Down Expand Up @@ -249,7 +250,7 @@ export default function Project({
className={`group-hover:${theming.fill}`}
/>
</svg>
<h4 className="text-white font-semibold text-3xl">
<h4 className="text-white font-semibold text-lg lg:text-3xl">
Watch the trailer
</h4>
</button>
Expand Down

0 comments on commit dbef3fc

Please sign in to comment.