chore: layout update

This commit is contained in:
haritabh-z01 2025-06-29 22:33:21 +05:30
parent 71040d079c
commit 3d10b08e0c
2 changed files with 4 additions and 16 deletions

View file

@ -9,22 +9,20 @@ interface SiteHeaderProps {
export function SiteHeader({ currentView }: SiteHeaderProps) {
return (
<header
className="flex h-[var(--header-height)] shrink-0 items-center gap-2 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50 w-full"
className="flex h-[var(--header-height)] shrink-0 items-center gap-2 backdrop-blur supports-[backdrop-filter]:bg-sidebar/60 sticky top-0 z-50 w-full"
style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
>
<div className="flex w-full items-center gap-1">
{/* macOS traffic light button spacing */}
<div className="w-[78px] flex-shrink-0" />
<div className="flex items-center gap-1 px-4 lg:gap-2 lg:px-6">
<div className="flex items-center gap-1 px-4 lg:gap-2 lg:px-6 py-1.5">
<SidebarTrigger
className="-ml-1"
style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
/>
<Separator
orientation="vertical"
className="mx-2 data-[orientation=vertical]:h-4"
/>
</div>
<div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 flex items-center gap-2 pointer-events-none select-none">
<h1 className="text-base font-medium">{currentView || "Amical"}</h1>
</div>

View file

@ -13,8 +13,6 @@ import { createIPCHandler } from "electron-trpc-experimental/main";
import { router } from "../../trpc/router";
import { EventHandlers } from "./event-handlers";
import path from "path";
export class AppManager {
private windowManager: WindowManager;
private serviceManager: ServiceManager;
@ -31,14 +29,6 @@ export class AppManager {
try {
await this.initializeDatabase();
if (process.platform === "darwin" && app.isPackaged && app.dock) {
//! In development, use process.cwd() to get project root, in production use app.getAppPath()
//! dev mode throws error even with proper path, so skipping for now
const basePath = app.getAppPath();
const iconPath = path.join(basePath, "assets/logo.icns");
app.dock.setIcon(iconPath);
logger.main.debug("Set development dock icon", { iconPath });
}
await this.requestPermissions();
await this.serviceManager.initialize(this.windowManager);
this.exposeGlobalServices();