Skip to content

Commit

Permalink
fix: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteoood committed Aug 10, 2024
1 parent e2200d7 commit 404a56a
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions packages/pinorama-studio/src/components/title-bar/title-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,26 @@ import { PinoramaLogo } from "./components/pinorama-logo"
import { SettingsButton } from "./components/settings-button"
import { ThemeToggleButton } from "./components/theme-toggle-button"

const Left = () => (
<div className="flex items-center">
<PinoramaLogo />
</div>
)

const Center = () => (
<div className="absolute left-1/2 transform -translate-x-1/2 flex h-full items-center">
<ConnectionStatusButton />
</div>
)

const Right = () => (
<div className="flex items-center space-x-1.5">
<ThemeToggleButton />
<SettingsButton />
<ConnectionToggleButton />
</div>
)

export function TitleBar() {
return (
<div className="border-b bg-muted/20">
<div className="relative flex justify-between text-sm h-full px-3">
<Left />
{/* Left */}
<div className="flex items-center">
<PinoramaLogo />
</div>

<Center />
{/* Center */}
<div className="absolute left-1/2 transform -translate-x-1/2 flex h-full items-center">
<ConnectionStatusButton />
</div>

<Right />
{/* Right */}
<div className="flex items-center space-x-1.5">
<ThemeToggleButton />
<SettingsButton />
<ConnectionToggleButton />
</div>
</div>
</div>
)
Expand Down

0 comments on commit 404a56a

Please sign in to comment.