Hide desktop app titlebar chrome

This commit is contained in:
Sreeram Sreedhar 2026-06-23 22:57:44 -07:00
parent 9ff3bbfac6
commit cb36d89d9c

View file

@ -1,16 +1,8 @@
"use client"
// Draggable strip for the frameless main window. On macOS the native traffic
// lights overlay the top-left (tauri.conf.json -> titleBarStyle: "Overlay"),
// so we pad left to clear them. `data-tauri-drag-region` is the hook that lets
// Tauri move the OS window when this strip is dragged.
export function Titlebar({ title = "Supermemory" }: { title?: string }) {
// Invisible drag strip for the frameless main window.
export function Titlebar() {
return (
<header
data-tauri-drag-region
className="flex h-10 shrink-0 items-center justify-center border-white/[0.06] border-b bg-[#05080D]/70 pl-20 font-medium text-[#737B86] text-xs backdrop-blur-md"
>
{title}
</header>
<header data-tauri-drag-region className="h-2.5 shrink-0 bg-transparent" />
)
}