Skip to content

Commit

Permalink
fix: video container layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailmtion committed Jan 22, 2025
1 parent 562ea9b commit eae607b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pages/dashboard/activities/PairActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ const PairActivity: VoidComponent = () => {
})

return (
<div id="video-container" class="absolute size-full overflow-hidden bg-black text-white">
<video class="left-1/2 top-1/2 h-full min-w-full -translate-x-1/2 -translate-y-1/2 object-cover" ref={videoRef!} />
<div
id="video-container"
class="absolute inset-0 bg-black text-white"
>
<video
class="absolute inset-0 size-full object-cover"
ref={(ref) => (videoRef = ref)}
/>
<div class="prose absolute inset-0 flex flex-col justify-between pb-7">
<TopAppBar trailing={<IconButton href="/">close</IconButton>}>
Add new device
Expand Down

0 comments on commit eae607b

Please sign in to comment.