Skip to content

Commit

Permalink
chore: Added layout of player controls
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Dec 20, 2024
1 parent 4e7acda commit 59cb212
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/app/src/components/PlayerControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { ReactNode, RefObject } from "react";
export function PlayerControls() {
return (
<div className="flex flex-col gap-4 overflow-hidden">
<div className="flex">
<div className="flex justify-center">
<PlayButton />
</div>
<div className="p-3 rounded-md bg-default-100">
Expand Down Expand Up @@ -111,7 +111,9 @@ function Tooltip({
"pointer-events-none absolute h-6 -top-8 -translate-x-1/2 opacity-0 transition-opacity text-xs text-white bg-black px-1 flex items-center rounded-md",
visible && "opacity-100",
)}
style={{ left: `${x * 100}%` }}
style={{
left: `${x * 100}%`,
}}
>
{children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/routes/(dashboard)/_layout/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function RouteComponent() {
<div className="h-screen p-8 flex gap-4">
<PlayerProvider>
<div className="grow flex flex-col gap-4">
<div className="bg-gray-200 rounded-lg overflow-hidden shrink-0">
<div className="bg-default-100 rounded-lg overflow-hidden shrink-0">
<div className="max-w-[500px] mx-auto">
<Player url={url} />
</div>
Expand Down

0 comments on commit 59cb212

Please sign in to comment.